phpatch.com

← phpatch.com home

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

Medium · CVSS 6.5 · fetched 2026-10-22

## Summary `Resolver::processReferences()` collects `<use>` elements with the XPath predicate `use[@href or @xlink:href]`, which is case sensitive. A `<use>` element written as `xlink:HrEf` is therefore never added to the reference graph, so the nesting-DoS nullification never marks it for removal. `Sanitizer::cleanHrefAttributes()` then runs later in the same pass and rewrites `xlink:HrEf` back to the canonical `xlink:href`. The sanitizer hands back a fully live nesting bomb that it would have stripped completely had the input used canonical casing.

Our analysis

Who is affected

The source advisory enumerates the affected branches directly:

Exploitation status

Not KEV-listed in this record. In the source data for this record (retrieved 2026-10-22), the vulnerability was not listed in the CISA Known Exploited Vulnerabilities catalog. Read that narrowly: it means no catalogued exploitation at retrieval time, not that exploitation is impossible or unreported elsewhere.

Patch priority

Patch in the next regular maintenance cycle. The drivers for this record: the source rates it Medium; CVSS 6.5. No emergency handling is indicated by this record; schedule it, and re-check sooner if its KEV or severity status changes.

How this verdict is derived: from the fields on this page — the source advisory's severity and CVSS score, CISA KEV listing status and the affected-branch data — as retrieved 2026-10-22. It is a triage aid, not a substitute for the source advisory.

Remediation

Upgrade enshrined/svg-sanitize to 1.0.0 or later.

Affected PHP branches

PHP 8.5 — fixed in 8.5.12 (patched release available)

Check your site

Source: GitHub Global Security Advisories (Composer ecosystem) · retrieved 2026-10-22T10:19:14-04:00 · https://github.com/advisories/GHSA-m9xh-6747-9r6f

← All threats