{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2023-22461","published":"2023-01-04T15:15:09.510000Z","last_modified":"2026-06-17T05:35:30.200000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79","CWE-80"],"cpes":[{"criteria":"cpe:2.3:a:sanitize-svg_project:sanitize-svg:*:*:*:*:*:node.js:*:*","part":"a","vendor":"sanitize-svg_project","product":"sanitize-svg","version_end_excluding":"0.4.0"}],"cpes_truncated":false,"vendors":["sanitize-svg_project"],"products":["sanitize-svg_project/sanitize-svg"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00641,"percentile":0.45302,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-h857-2g56-468g","ecosystem":"npm","name":"@mattkrick/sanitize-svg","purl":"pkg:npm/%40mattkrick/sanitize-svg","ranges":[{"introduced":"0","fixed":"0.4.0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2023-22461/","html_en":"/en/cve/CVE-2023-22461/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-22461","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-22461"},"untrusted":{"vendor_name":"Sanitize-svg Project","product_name":"Sanitize-svg","desc_en":"The `sanitize-svg` package, a small SVG sanitizer to prevent cross-site scripting attacks, uses a deny-list-pattern to sanitize SVGs to prevent XSS. In doing so, literal `<script>`-tags and on-event handlers were detected in versions prior to 0.4.0. As a result, downstream software that relies on `sanitize-svg` and expects resulting SVGs to be safe, may be vulnerable to cross-site scripting. This vulnerability was addressed in v0.4.0. There are no known workarounds","affected":[{"untrusted_vendor":"mattkrick","untrusted_product":"sanitize-svg","versions":[]}],"references":[{"url":"https://github.com/mattkrick/sanitize-svg/commit/b107e453ede7b58adcccae74a3e474c012eec85d","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/mattkrick/sanitize-svg/security/advisories/GHSA-h857-2g56-468g","tags":["Exploit","Third Party Advisory"]}]}}