{"id":"CVE-2026-107381","published":"2026-10-14T14:53:40Z","modified":"2026-10-18T13:36:27Z","title":"svg-sanitizer: Mixed-case xlink:HrEf skips the `<use>` nesting-DoS check in Resolver::processReferences","vendor":"darylldoyle","product":"svg-sanitizer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00452,"percentile":0.31186,"provenance":"source"},"cwes":[{"id":"CWE-178","name":"Improper Handling of Case Sensitivity"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-m9xh-6747-9r6f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/darylldoyle/svg-sanitizer/commit/2dff6628314de8519155b7feb218bbe132785757","tags":["x_refsource_MISC"]},{"url":"https://github.com/darylldoyle/svg-sanitizer/releases/tag/1.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":6.24},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"darylldoyle","affectedVersions":[{"vendor":"darylldoyle","product":"svg-sanitizer","versions":["< 1.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-18T13:36:10.730964Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"enshrined/svg-sanitize","vulnerableRanges":["<1.0.0"],"patched":["1.0.0"],"from":["GHSA-m9xh-6747-9r6f"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-101125","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-darylldoyle-svg-sanitizer-cve-2019-18857","children":[{"from":"CVE-2026-107381","to":"CVE-2026-117540","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/ElementReference/Resolver.php","src/Helper.php"],"commits":["https://github.com/darylldoyle/svg-sanitizer/commit/2dff6628314de8519155b7feb218bbe132785757","https://github.com/darylldoyle/svg-sanitizer/commit/9ba9001493f5da737759303f13bd965ebdaa778c"],"basis":"shared function","functions":["getElementHref"]}]},{"from":"CVE-2026-107381","to":"CVE-2026-117541","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/ElementReference/Resolver.php","src/Helper.php"],"commits":["https://github.com/darylldoyle/svg-sanitizer/commit/2dff6628314de8519155b7feb218bbe132785757","https://github.com/darylldoyle/svg-sanitizer/commit/9ba9001493f5da737759303f13bd965ebdaa778c"],"basis":"shared function","functions":["getElementHref"]}]}]}}