Skip to content

[GHSA-m6mh-2hw2-555x] ammonia: affected ranges omit vulnerable 3.3.2, 4.1.0 and 4.1.1 - #12207

Open
phlppgdfry wants to merge 1 commit into
github:phlppgdfry/advisory-improvement-12207from
phlppgdfry:phlppgdfry-GHSA-m6mh-2hw2-555x
Open

phlppgdfry wants to merge 1 commit into
github:phlppgdfry/advisory-improvement-12207from
phlppgdfry:phlppgdfry-GHSA-m6mh-2hw2-555x

Conversation

@phlppgdfry

@phlppgdfry phlppgdfry commented Dec 2, 2026 •

Copy link
Copy Markdown

Two release lines are reported as unaffected although they lack the fix.

1. 4.1.0 and 4.1.1. The third range starts at introduced: 4.1.2, so 4.1.0 and 4.1.1 are shown as not affected.

  • Both predate the fix: 4.1.0 was published on crates.io on 2025-04-21 and 4.1.1 on 2025-07-08. The fix commits (rust-ammonia/ammonia@9394bd8, @9e3335e, @d2ae154) are from 2026-07-22 and shipped in 3.3.3, 4.0.3 and 4.1.4.
  • src/lib.rs at tags v4.1.0 and v4.1.1 contains none of the fix (no attributeName checks, no xlink:href URL check), the same as the vulnerable v4.0.2 and v4.1.2. v4.1.4 contains them.
  • RustSec (RUSTSEC-2026-0213) already lists 4.1.0 and 4.1.1 as vulnerable: patched = [">= 4.1.4", ">= 4.0.3, < 4.1.0", ">= 3.3.3, < 4.0.0"].

2. 3.3.2. The first range's displayed last_known_affected_version_range is < 3.3.2, but its OSV range is introduced: 0, fixed: 3.3.3. The fix commit itself bumps the version from 3.3.2 to 3.3.3, so 3.3.2 is vulnerable but shown as unaffected.

Changes (2 lines):

Found by cross-checking the GitHub Advisory Database against RustSec; method: https://doi.org/10.5281/zenodo.24747190

🤖 Generated with Claude Code

Copilot AI adaptive review requested due to automatic review settings December 2, 2026 15:43
@github-actions
github-actions Bot changed the base branch from main to phlppgdfry/advisory-improvement-12207 December 2, 2026 15:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The expanded vulnerability ranges require curator verification of upstream release and fix history unavailable in the checkout, since incorrect boundaries would affect downstream security alerts.

No open issues 🎉

What changed in this PR

Corrects ammonia’s advisory metadata to include omitted vulnerable releases.

Changes:

  • Includes 3.3.2 in the last-known affected version range.
  • Expands the 4.1.x affected range to include 4.1.0 and 4.1.1, leaving fixed versions unchanged.
File Description
advisories/​github-reviewed/​2026/​09/​GHSA-m6mh-2hw2-555x/​GHSA-m6mh-2hw2-555x.json Corrects the affected-version metadata for ammonia.

Review effort: Max (adaptive)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants