{"answers":{"affected":"7 open source packages ship an affected version, including ammonia.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-63430 exists.","fix":"Upgrade ammonia to a fixed version for your release line: 3.3.2, 4.0.2 or 4.1.3.","what":"CVE-2026-63430 is a medium-severity cross-site scripting vulnerability in rust-ammonia ammonia, published on 15 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-63430 and fix it if it is affected.\n\nWhat it is: CVE-2026-63430 is a medium-severity cross-site scripting vulnerability in rust-ammonia ammonia, published on 15 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-63430 exists.\n\nAffected packages and fixed versions:\n- ammonia (crates.io): affected all versions; fixed in 3.3.2\n- ammonia (crates.io): affected all versions; fixed in 3.3.2\n- ammonia (crates.io): affected from 0.0.0-0; fixed in 3.3.2, 4.0.2, 4.1.3\n- ammonia (crates.io): affected from 4.0.0; fixed in 4.0.2\n- ammonia (crates.io): affected from 4.0.0; fixed in 4.0.2\n- ammonia (crates.io): affected from 4.1.0; fixed in 4.1.3\n- ammonia (crates.io): affected from 4.1.0; fixed in 4.1.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-63430/ (Markdown: https://insights.sbomify.com/CVE-2026-63430/index.md)","id":"CVE-2026-63430","markdown":"https://insights.sbomify.com/CVE-2026-63430/index.md","name":"CVE-2026-63430","record":{"aliases":["DEBIAN-CVE-2026-63430","GHSA-9jh8-v38h-cvhr","RUSTSEC-2026-0193","UBUNTU-CVE-2026-63430"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Rust HTML sanitizer","requires_auth":"none","summary":"Attackers can execute JavaScript via mutation XSS in ammonia when specific MathML tags are explicitly allowed, requiring an upgrade to secure applications.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"ammonia is a Rust library for repairing and securing untrusted HTML. Prior to 3.3.2, 4.0.2, and 4.1.3, applications that explicitly allow the math tag, annotation-xml, and at least one raw-text HTML element while disallowing the encoding attribute can permit mutation cross-site scripting. ammonia does not correctly implement annotation-xml's encoding-dependent MathML integration-point behavior after attribute filtering removes encoding, so the sanitizer validates a descendant under one namespace interpretation while the browser reparses the output under another. An attacker can use that namespace transition and an allowed raw-text HTML element to execute JavaScript when a user renders the sanitized output. The required tags are not enabled by default, so applications that do not explicitly allow them are not affected. This issue is fixed in versions 3.3.2, 4.0.2, and 4.1.3.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"ammonia: mXSS in ammonia via MathML `annotation-xml` encoding strip","id":"CVE-2026-63430","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":7,"n_references":12,"next":{"headline":"Missing authorization in horilla-hr","id":"CVE-2026-63431"},"packages":[{"ecosystem":"crates.io","fixed":["3.3.2"],"introduced":["0"],"last_affected":[],"package":"ammonia","purl":null,"source":"GHSA-9jh8-v38h-cvhr"},{"ecosystem":"crates.io","fixed":["3.3.2"],"introduced":["0"],"last_affected":[],"package":"ammonia","purl":"pkg:cargo/ammonia","source":"GHSA-9jh8-v38h-cvhr"},{"ecosystem":"crates.io","fixed":["3.3.2","4.0.2","4.1.3"],"introduced":["0.0.0-0","4.0.0","4.1.0"],"last_affected":[],"package":"ammonia","purl":"pkg:cargo/ammonia","source":"RUSTSEC-2026-0193"},{"ecosystem":"crates.io","fixed":["4.0.2"],"introduced":["4.0.0"],"last_affected":[],"package":"ammonia","purl":null,"source":"GHSA-9jh8-v38h-cvhr"},{"ecosystem":"crates.io","fixed":["4.0.2"],"introduced":["4.0.0"],"last_affected":[],"package":"ammonia","purl":"pkg:cargo/ammonia","source":"GHSA-9jh8-v38h-cvhr"},{"ecosystem":"crates.io","fixed":["4.1.3"],"introduced":["4.1.0"],"last_affected":[],"package":"ammonia","purl":null,"source":"GHSA-9jh8-v38h-cvhr"},{"ecosystem":"crates.io","fixed":["4.1.3"],"introduced":["4.1.0"],"last_affected":[],"package":"ammonia","purl":"pkg:cargo/ammonia","source":"GHSA-9jh8-v38h-cvhr"}],"prev":{"headline":"HeyForm has unauthenticated /api/upload endpoint that accepts arbitrary files with no auth/session/form context","id":"CVE-2026-63429"},"products":["ammonia"],"published":"2026-10-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-15","vendors":["rust-ammonia"]},"summary":"Attackers can execute JavaScript via mutation XSS in ammonia when specific MathML tags are explicitly allowed, requiring an upgrade to secure applications.","url":"https://insights.sbomify.com/CVE-2026-63430/"}