{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-55166","id":"CVE-2025-55166","title":"svg-sanitizer By-Passing Attribute Sanitization","description":"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.","descriptionLong":"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.","published":"2025-08-12T16:25:17.220Z","updated":"2026-10-28T02:30:29.021663532Z","reserved":"2025-08-07T18:27:23.307Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":5.1,"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":5.1,"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","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":5.1,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"}],"rating":"medium","products":["darylldoyle svg-sanitizer"],"affectedProducts":[{"vendor":"darylldoyle","product":"svg-sanitizer","defaultStatus":null,"versions":[{"version":"< 0.22.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"enshrined/svg-sanitize","purl":"pkg:composer/enshrined/svg-sanitize","ranges":["<0.22.0"],"fixed":["0.22.0"],"advisory":"GHSA-22wq-q86m-83fh"}],"cwes":["CWE-79","CWE-601"],"aliases":["GHSA-22wq-q86m-83fh"],"references":[{"url":"https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-22wq-q86m-83fh","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/darylldoyle/svg-sanitizer/commit/5a0a1eaf0c6b0b540dc945fe30c93cf106b357c1","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/55xxx/CVE-2025-55166.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55166","tags":["advisory"]},{"url":"https://github.com/darylldoyle/svg-sanitizer/commit/0afa95ea74be155a7bcd6c6fb60c276c39984500","tags":["web"]},{"url":"https://github.com/darylldoyle/svg-sanitizer","tags":["package"]},{"url":"https://github.com/darylldoyle/svg-sanitizer/blob/0.21.0/src/Sanitizer.php#L454-L481","tags":["web"]},{"url":"https://github.com/darylldoyle/svg-sanitizer/releases/tag/0.22.0","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00585,"epssPercentile":0.48679,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-55166","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55166","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-55166","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-22wq-q86m-83fh","ok":true,"note":"GHSA-22wq-q86m-83fh"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-55166","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}