THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-mf2j-8f84-cc9q (medium) — Loofah: Regular expression denial of service in the SVG local-reference check

[GHSA] GHSA-mf2j-8f84-cc9q (medium) — Loofah: Regular expression denial of service in the SVG local-reference check

medgithub_advisoriesPublished 2026-11-12

GHSA-mf2j-8f84-cc9q Severity: medium CVE: CVE-2026-126205

Loofah: Regular expression denial of service in the SVG local-reference check

## Summary

Loofah's HTML5 sanitizer restricts the `href` and `xlink:href` attributes of SVG reference elements to local references. That check matched the attribute value against `/^\s*[^#\s].*/m`. In Ruby `^` anchors to every line start and `\s` matches newlin

Indicators of compromise

Original source: https://github.com/advisories/GHSA-mf2j-8f84-cc9q