Symfony: HtmlSanitizer MetaRefreshAttributeSanitizer Matches Only a Narrow Subset of the Browser Refresh Grammar (Incomplete Fix for CVE-2026-48761)
- CVE-2026-121373
- GHSA-wm2w-4mgj-vw33
- EUVD-2026-116909
Description
The Symfony HtmlSanitizer component MetaRefreshAttributeSanitizer, introduced to fix CVE-2026-48761, sanitizes the refresh URL of content attributes of meta tags using a regular expression that is too narrow, allowing sanitization to be bypassed, and resulting in potential URL redirection to untrusted sites in Symfony versions 6.1.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11. The shared declarative refresh steps in the WHATWG HTML Standard require a broader approach: the separator after the time may be ASCII whitespace alone, with no ; or ,, and the url= keyword is optional. Directives the browser honours, but the regular expression misses are returned unchanged, so the attacker URL skips UrlSanitizer entirely and both allowLinkSchemes and allowLinkHosts are defeated for the refresh navigation. This is reachable under any configuration that allows meta with http-equiv and content, including the documented allowStaticElements() preset.
Text from the CVE.org record.
Recommendation
symfony
- If you run a version from 8.0.0 to before 8.1.11update to 8.1.11 or laterMinor version change: check the release notes
- If you run a version from 7.0.0 to before 7.4.23update to 7.4.23 or laterMinor version change: check the release notes
- If you run a version from 6.1.0 to before 6.4.50update to 6.4.50 or laterMinor version change: check the release notes
symfony/html-sanitizer
- If you run a version from 8.0.0 to before 8.1.11update to 8.1.11 or laterMinor version change: check the release notessymfony/html-sanitizer 8.1.11 on its registry (opens in a new tab)
- If you run a version from 7.0.0 to before 7.4.23update to 7.4.23 or laterMinor version change: check the release notessymfony/html-sanitizer 7.4.23 on its registry (opens in a new tab)
- If you run a version from 6.1.0 to before 6.4.50update to 6.4.50 or laterMinor version change: check the release notessymfony/html-sanitizer 6.4.50 on its registry (opens in a new tab)
symfony/symfony
- If you run a version from 8.0.0 to before 8.1.11update to 8.1.11 or laterMinor version change: check the release notessymfony/symfony 8.1.11 on its registry (opens in a new tab)
- If you run a version from 7.0.0 to before 7.4.23update to 7.4.23 or laterMinor version change: check the release notessymfony/symfony 7.4.23 on its registry (opens in a new tab)
- If you run a version from 6.1.0 to before 6.4.50update to 6.4.50 or laterMinor version change: check the release notessymfony/symfony 6.4.50 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
symfony
Affected versions Fixed in from 8.0.0 to before 8.1.11 8.1.11 from 7.0.0 to before 7.4.23 7.4.23 from 6.1.0 to before 6.4.50 6.4.50 symfony/html-sanitizerPackagist
Affected versions Fixed in from 8.0.0 to before 8.1.11 8.1.11 from 7.0.0 to before 7.4.23 7.4.23 from 6.1.0 to before 6.4.50 6.4.50 symfony/symfonyPackagist
Affected versions Fixed in from 8.0.0 to before 8.1.11 8.1.11 from 7.0.0 to before 7.4.23 7.4.23 from 6.1.0 to before 6.4.50 6.4.50
Product versions from the ENISA EUVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.