{"id":"RUSTSEC-2025-0071","revision":"64550ca018134a10944309f635e78771","records":[{"revision":"64550ca018134a10944309f635e78771","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2025-0071","aliases":["GHSA-mm7x-qfjj-5g2c"],"title":"Incorrect handling of embedded SVG and MathML leads to mutation XSS after removal","description":"Affected versions of this crate did not correctly strip namespace-incompatible tags\nin certain situations, causing it to incorrectly account for differences between HTML,\nSVG, and MathML.\n\nThis vulnerability only has an effect when the `svg` or `math` tag is allowed,\nbecause it relies on a tag being parsed as html during the cleaning process, but\nserialized in a way that causes in to be parsed as xml by the browser.\n\nAdditionally, the application using this library must allow a tag that is parsed as raw text in HTML.\nThese [elements] are:\n\n* title\n* textarea\n* xmp\n* iframe\n* noembed\n* noframes\n* plaintext\n* noscript\n* style\n* script\n\nApplications that do not explicitly allow any of these tags should not be affected, since none are allowed by default.\n\n[elements]: https://github.com/servo/html5ever/blob/57eb334c0ffccc6f88d563419f0fbeef6ff5741c/html5ever/src/tree_builder/rules.rs","state":0,"publishedAt":"2025-09-21T12:00:00+00:00","modifiedAt":"2025-10-28T06:29:25.438486+00:00","affected":[{"ecosystem":"crates.io","name":"ammonia","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"3.3.1"},{"kind":"introduced","version":"4.0.0"},{"kind":"fixed","version":"4.0.1"},{"kind":"introduced","version":"4.1.0"},{"kind":"fixed","version":"4.1.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/ammonia","https://rustsec.org/advisories/RUSTSEC-2025-0071.html"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2025-0071","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2025-0071","identifiers":["RUSTSEC-2025-0071","GHSA-mm7x-qfjj-5g2c"]},"retained":false,"historicalAffected":[]}],"coverage":[]}