CVE-2026-107381
MEDIUM 6.5svg-sanitizer is a PHP SVG/XML sanitizer. Prior to 1.0.0, Resolver::processReferences() in src/ElementReference/Resolver.php builds the SVG <use> reference graph with a case-sensitive href attribute predicate before cleanHrefAttributes() normalizes mixed-case names. An attacker can provide xlink:HrEf on nested <use> elements so the graph omits those references, after which the sanitizer converts the attribute to canonical xlink:href and returns the live nesting structure without applying the useNestingLimit protection. A consuming application that renders the sanitized SVG can therefore be exposed to the resource exhaustion that control is designed to prevent. This issue is fixed in version 1.0.0.
No known exploitation, public exploit, or elevated probability at this time. Track for changes.
Exploitation likelihood
0.5%chance of exploitation in 30 days · 40th percentile
Impact if exploited
6.5CVSS 3.1 · MEDIUM
- ConfidentialityNone
- IntegrityNone
- AvailabilityHigh
What an attacker needs
- ✓Access: Reachable over the network — no local access needed
- ✓Privileges: No account or privileges required
- ⚠User interaction: A user must take an action (click / open a file)
- ✓Complexity: No special conditions — reliably repeatable
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
No public PoC is currently catalogued.
Search for new PoCs
Search GitHub now — results may be empty or unverified.
Tracked sources are checked daily for recent CVEs, including PoCs published after the original disclosure. A later release appears after a tracked source lists it and a refresh succeeds.
Data snapshot:
Weakness (CWE)
- CWE-178: : Improper Handling of Case Sensitivity
- CWE-400: : Uncontrolled Resource Consumption
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
References and research data (JSON)
Packages and version ranges
Each advisory describes its own package and affected ranges. A boundary applies to that range; it is not a universal upgrade recommendation.
enshrined/svg-sanitize Packagist
pkg:composer/enshrined/svg-sanitize
ECOSYSTEM range- All earlier versions (introduced 0)
- Fixed boundary (excluded): 1.0.0
48 explicitly listed affected versions
0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.15.4, 0.16.0, 0.17.0, 0.18.0, 0.19.0, 0.2.0, 0.2.1, 0.20.0, 0.21.0, 0.22.0, 0.3.0, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.3.1, 0.6.0, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.9.2
GitHub Advisory Database · GHSA-m9xh-6747-9r6f · Updated 2026-10-08T20:00:06.562026594ZAdditional upstream package constraints
{ "database": { "last_known_affected_version_range": "<= 0.22.0", "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-m9xh-6747-9r6f/GHSA-m9xh-6747-9r6f.json" } }
All CVSS metrics
- MEDIUM 6.5 v3.1 · CNA Primary
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - MEDIUM 6.5 v3.1 · NVD Secondary
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
References
Exploit-tagged references (not proof of a PoC)
- https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-m9xh-6747-9r6f CVE record · GitHub_M · Updated 2026-10-14T14:53:40.415Z
CVE record · CISA-ADP · Updated 2026-10-18T13:36:27.865Z
NVD · CVE-2026-107381 · Updated 2026-10-18T14:16:54.040
GitHub Advisory Database · GHSA-m9xh-6747-9r6f
GitHub Advisory Database · GHSA-m9xh-6747-9r6f · Updated 2026-10-08T20:00:06.562026594Z
Advisories
- https://osv.dev/vulnerability/GHSA-m9xh-6747-9r6f GitHub Advisory Database · GHSA-m9xh-6747-9r6f
GitHub Advisory Database · GHSA-m9xh-6747-9r6f · Updated 2026-10-08T20:00:06.562026594Z - https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-101125 EUVD · EUVD-2026-101125
Technical & other
- https://github.com/darylldoyle/svg-sanitizer/commit/2dff6628314de8519155b7feb218bbe132785757 CVE record · GitHub_M · Updated 2026-10-14T14:53:40.415Z
NVD · CVE-2026-107381 · Updated 2026-10-18T14:16:54.040
GitHub Advisory Database · GHSA-m9xh-6747-9r6f
GitHub Advisory Database · GHSA-m9xh-6747-9r6f · Updated 2026-10-08T20:00:06.562026594Z - https://github.com/darylldoyle/svg-sanitizer/releases/tag/1.0.0 CVE record · GitHub_M · Updated 2026-10-14T14:53:40.415Z
NVD · CVE-2026-107381 · Updated 2026-10-18T14:16:54.040
GitHub Advisory Database · GHSA-m9xh-6747-9r6f
GitHub Advisory Database · GHSA-m9xh-6747-9r6f · Updated 2026-10-08T20:00:06.562026594Z - https://github.com/darylldoyle/svg-sanitizer GitHub Advisory Database · GHSA-m9xh-6747-9r6f
GitHub Advisory Database · GHSA-m9xh-6747-9r6f · Updated 2026-10-08T20:00:06.562026594Z