{"id":"CVE-2025-55166","published":"2025-08-12T16:25:17Z","modified":"2025-08-12T17:48:05Z","title":"svg-sanitizer By-Passing Attribute Sanitization","vendor":"darylldoyle","product":"svg-sanitizer","tier":"tail","description":{"text":"savg-sanitizer is a PHP SVG/XML sanitizer. Prior to version 0.22.0, the sanitization logic in the cleanXlinkHrefs method only searches for lower-case attribute name, which allows to by-pass the isHrefSafeValue check. As a result this allows cross-site scripting or linking to external domains. This issue has been patched in version 0.22.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00585,"percentile":0.48874,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-22wq-q86m-83fh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/darylldoyle/svg-sanitizer/commit/5a0a1eaf0c6b0b540dc945fe30c93cf106b357c1","tags":["x_refsource_MISC"]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":9.77},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"darylldoyle","affectedVersions":[{"vendor":"darylldoyle","product":"svg-sanitizer","versions":["< 0.22.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-12T17:47:50.627813Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"enshrined/svg-sanitize","vulnerableRanges":["<0.22.0"],"patched":["0.22.0"],"from":["GHSA-22wq-q86m-83fh"],"provenance":"source"}],"summary":{"text":"The svg-sanitizer PHP library by darylldoyle contains a flaw in its cleanXlinkHrefs method, which only matches lower-case attribute names and so fails to catch mixed-case variants that bypass the isHrefSafeValue check. An attacker who can get a crafted SVG processed by the sanitizer, with user interaction required (the victim has to act on the content), can achieve cross-site scripting or link to external domains.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:11Z"},"euvd":{"id":"EUVD-2025-24263","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-darylldoyle-svg-sanitizer-cve-2019-10772","parents":[{"from":"CVE-2019-10772","to":"CVE-2025-55166","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/5a0a1eaf0c6b0b540dc945fe30c93cf106b357c1","https://github.com/darylldoyle/svg-sanitizer/commit/0afa95ea74be155a7bcd6c6fb60c276c39984500"],"basis":"shared function","functions":["cleanAttributesOnWhitelist"]}]}]}}