CVE-2025-55166 json
svg-sanitizer By-Passing Attribute Sanitization
published last yr. modified 4mo ago also EUVD-2025-24263 , GHSA-22wq-q86m-83fh
- cvss
- 5.1
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 45%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist enshrined/svg-sanitize 0.22.0
- svg-sanitizer_project svg-sanitizer 0.22.0
Is CVE-2025-55166 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.54% chance of exploitation in the next 30 days, higher than 45% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.1 | 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 |
| CNA | 4.0 | 5.1 | 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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | enshrined/svg-sanitize | <0.22.0 |
0.22.0 |
Affected products
- darylldoyle svg-sanitizer
Classification
References
-
github.com
/darylldoyle/svg-sanitizer/commit/5a0a1eaf0c6b0b540dc945fe30c93cf106b357c1
web
-
github.com
/darylldoyle/svg-sanitizer/commit/0afa95ea74be155a7bcd6c6fb60c276c39984500
web
-
github.com
/darylldoyle/svg-sanitizer/security/advisories/GHSA-22wq-q86m-83fh
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-55166
advisory
-
github.com
/darylldoyle/svg-sanitizer
package
-
github.com
/darylldoyle/svg-sanitizer/blob/0.21.0/src/Sanitizer.php#L454-L481
web
-
github.com
/darylldoyle/svg-sanitizer/releases/tag/0.22.0
web
Sources
- CVE List CVE-2025-55166
- GitHub Advisory GHSA-22wq-q86m-83fh
- NVD CVE-2025-55166
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.