THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-m3x9-938q-5767 (medium) — Loofah: CSS url() sanitization bypass via escaped parentheses

[GHSA] GHSA-m3x9-938q-5767 (medium) — Loofah: CSS url() sanitization bypass via escaped parentheses

medgithub_advisoriesPublished 2026-11-12

GHSA-m3x9-938q-5767 Severity: medium CVE: CVE-2026-126207

Loofah: CSS url() sanitization bypass via escaped parentheses

## Summary

`Loofah::HTML5::Scrub.scrub_css` rejected any property whose top-level Crass tokens included a `:url` or `:bad_url`, and left `url` out of the allowed CSS functions. Both checks ran only against the first parse of the `style` attribute. When `scrub_css` rebuilt each

Indicators of compromise

Original source: https://github.com/advisories/GHSA-m3x9-938q-5767