{"id":"CVE-2022-23638","published":"2022-02-14T21:10:10Z","modified":"2025-04-23T19:05:21Z","title":"Cross-site Scripting in svg-sanitizer","vendor":"darylldoyle","product":"svg-sanitizer","tier":"tail","description":{"text":"svg-sanitizer is a SVG/XML sanitizer written in PHP. A cross-site scripting vulnerability impacts all users of the `svg-sanitizer` library prior to version 0.15.0. This issue is fixed in version 0.15.0. There is currently no workaround available.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00679,"percentile":0.53299,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-fqx8-v33p-4qcc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/darylldoyle/svg-sanitizer/commit/17e12ba9c2881caa6b167d0fbea555c11207fbb0","tags":["x_refsource_MISC"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":10.66},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"darylldoyle","affectedVersions":[{"vendor":"darylldoyle","product":"svg-sanitizer","versions":["< 0.15.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:10:34.653941Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"enshrined/svg-sanitize","vulnerableRanges":["<0.15.0"],"patched":["0.15.0"],"from":["GHSA-fqx8-v33p-4qcc"],"provenance":"source"}],"summary":{"text":"A cross-site scripting flaw exists in the svg-sanitizer library, an SVG/XML sanitizer written in PHP from darylldoyle, in versions prior to 0.15.0. An attacker with no privileges and no required user interaction can exploit it through local access to the system, so the attack depends on the attacker being able to supply input to the library, as the vector.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:51Z"},"euvd":{"id":"EUVD-2022-0990","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-darylldoyle-svg-sanitizer-cve-2019-10772","parents":[{"from":"CVE-2019-10772","to":"CVE-2022-23638","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Sanitizer.php"],"commits":["https://github.com/darylldoyle/svg-sanitizer/commit/6add43e5c5649bc40e3afcb68c522720dcb336f9","https://github.com/darylldoyle/svg-sanitizer/commit/17e12ba9c2881caa6b167d0fbea555c11207fbb0"],"basis":"shared function","functions":["startClean"]}]}]}}