{"schema":"threatline.record/2","record":{"id":"CVE-2026-102342","aliases":["GHSA-m6mh-2hw2-555x","RUSTSEC-2026-0213"],"summary":"Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","details":"The following SVG will produce a link with a `javascript` scheme. If the user clicks this link, they will run it.\n\n```svg\n<svg xmlns=\"http://www.w3.org/2000/svg\">\n  <a>\n    <set attributeName=\"href\" to=\"javascript:alert('SET_XSS')\"></set>\n    <text y=\"30\">Click set</text>\n  </a>\n</svg>\n```\n\n### Impact\n\nAllows stored XSS in applications that allow the `animate` and `set` tags.\n\n### Patches\n\nFixed in 3.3.3, 4.0.3, and 4.1.4\n\n### Workarounds\n\nDo not enable the `animate` or `set` tags.","categories":["Libraries & packages"],"product":"ammonia","vendor":"rust-ammonia","ecosystem":"rust","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:09:17Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"rust","name":"ammonia"},"range":"< 3.3.2"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:09:17Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"rust","name":"ammonia"},"range":">= 4.0.0, <= 4.0.2"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:09:17Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"rust","name":"ammonia"},"range":">= 4.1.2, <= 4.1.3"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-102342","source_modified_at":"2026-10-13T20:23:10.660Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"ammonia","vendor":"rust-ammonia","versions":[{"version":"< 3.3.3","status":"affected"},{"version":">= 4.0.0, < 4.0.3","status":"affected"},{"version":">= 4.1.2, < 4.1.4","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:25:44.070111673Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"ammonia","ecosystem":"crates.io","purl":"pkg:cargo/ammonia"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.3.3"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:25:44.070111673Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"ammonia","ecosystem":"crates.io","purl":"pkg:cargo/ammonia"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.0.3"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:25:44.070111673Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"ammonia","ecosystem":"crates.io","purl":"pkg:cargo/ammonia"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.1.2"},{"fixed":"4.1.4"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:09:17Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"rust","name":"ammonia"},"version":"3.3.3"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:09:17Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"rust","name":"ammonia"},"version":"4.0.3"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:09:17Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"rust","name":"ammonia"},"version":"4.1.4"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:25:44.070111673Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"ammonia","ecosystem":"crates.io","purl":"pkg:cargo/ammonia"},"version":"3.3.3"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:25:44.070111673Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"ammonia","ecosystem":"crates.io","purl":"pkg:cargo/ammonia"},"version":"4.0.3"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-m6mh-2hw2-555x","source_modified_at":"2026-09-29T23:25:44.070111673Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"ammonia","ecosystem":"crates.io","purl":"pkg:cargo/ammonia"},"version":"4.1.4"}],"cvss":5.4,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00355,"percentile":0.28006,"score_date":"2026-10-23"},"published_at":"2026-10-13T14:28:50.011Z","modified_at":"2026-10-13T20:23:10.660Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-m6mh-2hw2-555x","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-09-29T23:09:17Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-102342","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-13T20:23:10.660Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-m6mh-2hw2-555x","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-09-29T23:25:44.070111673Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-102342","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/rust-ammonia/ammonia/pull/250","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/rust-ammonia/ammonia/pull/251","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/rust-ammonia/ammonia/pull/252","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8d","tags":["x_refsource_MISC"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0213.html","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-m6mh-2hw2-555x","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.3","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.3","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.4","tags":["x_refsource_MISC"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-10-13T20:13:15.972756Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-13T20:23:10.660Z","content_hash":"b3a33ba31bee8a6a8753e6733328e9cb2359a29e7ba55afee635ce2d0b03f8ed"}}
