CISA list

● crates.io crate

ammonia

Ammonia has 10 security advisories. The newest release any of them names as the fix is 4.2.5.

As of , ammonia has 10 security advisories. The newest release any of them names as the fix is 4.2.5.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
From 4.2.0 before 4.2.54.2.54 advisories
Before 4.1.94.1.910 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
RUSTSEC-2026-0533Incorrect handling of embedded SVG and MathML leads to mutation XSSFrom 4.2.0 before 4.2.5; From 4.0.0 before 4.1.9; Before 3.3.53.3.5, 4.1.9, 4.2.5
RUSTSEC-2026-0373Missing case-insensitive matching for CSS url functionFrom 4.2.0 before 4.2.4; Before 4.1.84.1.8, 4.2.4
CVE-2026-102342GHSA-m6mh-2hw2-555x, RUSTSEC-2026-0213Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')Moderate severityFrom 4.1.0 before 4.1.4; From 4.0.0 before 4.0.3; Before 3.3.33.3.3, 4.0.3, 4.1.4
CVE-2026-63430GHSA-9jh8-v38h-cvhr, RUSTSEC-2026-0193ammonia: mXSS via MathML `annotation-xml` encoding stripModerate severityFrom 4.1.0 before 4.1.3; From 4.0.0 before 4.0.2; Before 3.3.23.3.2, 4.0.2, 4.1.3
GHSA-mm7x-qfjj-5g2cRUSTSEC-2025-0071Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removalLow severityFrom 4.1.0 before 4.1.2; From 4.0.0 before 4.0.1; Before 3.3.13.3.1, 4.0.1, 4.1.2
GHSA-p2g9-94wh-65c2RUSTSEC-2022-0003Space bug in `clean_text`Moderate severityFrom 3.0.0 before 3.1.33.1.3
RUSTSEC-2021-0157Incorrect escaping for `url("")` functions in CSS style attributesFrom 4.2.0 before 4.2.3; Before 4.1.74.1.7, 4.2.3
RUSTSEC-2021-0158XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tagsFrom 4.2.0 before 4.2.3; Before 4.1.74.1.7, 4.2.3
CVE-2021-38193GHSA-5325-xw5m-phm3, RUSTSEC-2021-0074Cross-site Scripting in ammoniaModerate severityFrom 3.0.0 before 3.1.0; Before 2.1.32.1.3, 3.1.0
CVE-2019-15542GHSA-5hp8-35wj-m525, RUSTSEC-2019-0001Uncontrolled recursion in ammoniaHigh severityBefore 2.1.02.1.0

Other crates.io crates

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0