HtmlSanitizer Doesn't Check Meta Refresh URLs Whose Time Follows a Vertical Tab or a Unicode Space: Incomplete Fix for CVE-2026-121373
- CVE-2026-133756
- EUVD-2026-135181
Description
MetaRefreshAttributeSanitizer checks the URL of a <meta http-equiv="refresh"> directive only when its content starts with a refresh time. Since the fix for CVE-2026-121373, only the ASCII whitespace of the HTML specification could come before that time. Chromium-based browsers also skip a vertical tab and the Unicode spaces U+1680, U+2000 to U+200A, U+2028, U+205F and U+3000. When the time followed one of these characters, the sanitizer returned the value unchanged. Its URL wasn't checked against allowLinkHosts() and allowLinkSchemes(), and Chromium followed it: $sanitizer->sanitizeFor('head', "<meta http-equiv=\"refresh\" content=\"\u{3000}0;url=https://evil.example/\">"); // returned unchanged, and Chromium redirects to https://evil.example/ The vertical tab is a regression of the fix for CVE-2026-121373, since the expression used before matched it. The Unicode spaces have been accepted since the sanitizer of meta refresh directives exists. This requires the configuration of CVE-2026-121373: meta elements allowed with their http-equiv and content attributes, for example with allowStaticElements(), and content sanitized with sanitizeFor('head', ...). Firefox and Safari skip only ASCII whitespace there. The sanitizer now skips controls, Unicode whitespace and invisible characters before the time, so that it checks the URL of these directives too.
Text from the CVE.org record.
Recommendation
Symfony symfony/html-sanitizer
- If you run a version from 8.0.0 to before 8.1.12update to 8.1.12 or laterMinor version change: check the release notes
- If you run a version from 7.0.0 to before 7.4.24update to 7.4.24 or laterMinor version change: check the release notes
- If you run a version from 6.1.0 to before 6.4.51update to 6.4.51 or laterMinor version change: check the release notes
Symfony symfony/symfony
- If you run a version from 8.0.0 to before 8.1.12update to 8.1.12 or laterMinor version change: check the release notes
- If you run a version from 7.0.0 to before 7.4.24update to 7.4.24 or laterMinor version change: check the release notes
- If you run a version from 6.1.0 to before 6.4.51update to 6.4.51 or laterMinor version change: check the release notes
Taken from the version ranges of the CVE.org record. 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 symfony/html-sanitizer
Affected versions Fixed in from 8.0.0 to before 8.1.12 8.1.12 from 7.0.0 to before 7.4.24 7.4.24 from 6.1.0 to before 6.4.51 6.4.51 Symfony symfony/symfony
Affected versions Fixed in from 8.0.0 to before 8.1.12 8.1.12 from 7.0.0 to before 7.4.24 7.4.24 from 6.1.0 to before 6.4.51 6.4.51
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.