# CVE-2026-107381: svg-sanitizer: Mixed-case xlink:HrEf skips the `<use>` nesting-DoS check in Resolver::processReferences

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-08T19:41:10.000Z
- Modified: 2026-10-18T14:16:54.040Z
- Also known as: GHSA-m9xh-6747-9r6f
- Weaknesses: CWE-178, CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

svg-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.

(As written by CVE List.)

## Affected

- darylldoyle svg-sanitizer: < 1.0.0
- enshrined/svg-sanitize (Packagist): before 1.0.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-m9xh-6747-9r6f> (exploit, web)
- <https://github.com/darylldoyle/svg-sanitizer/commit/2dff6628314de8519155b7feb218bbe132785757> (web)
- <https://github.com/darylldoyle/svg-sanitizer/releases/tag/1.0.0> (web)
- <https://github.com/darylldoyle/svg-sanitizer> (package)

## Sources

- CVE List: [CVE-2026-107381](https://www.cve.org/CVERecord?id=CVE-2026-107381), CVE Terms of Use, modified 2026-10-18
- GitHub Advisory Database: [GHSA-m9xh-6747-9r6f](https://github.com/advisories/GHSA-m9xh-6747-9r6f), CC-BY-4.0, modified 2026-10-08
- NVD: [CVE-2026-107381](https://nvd.nist.gov/vuln/detail/CVE-2026-107381), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2026-107381 · Whole record: https://cve.day/CVE-2026-107381.json · Rebuilt by cve.day 2026-11-25T22:59:44.649Z
