Symfony HtmlSanitizer skips meta refresh URL checks after whitespace
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-601.
Summary
symfony/html-sanitizer and symfony/symfony from 6.1.0 before 6.4.51, from 7.0.0 before 7.4.24 and from 8.0.0 before 8.1.12 are affected. The meta refresh sanitizer skips the URL check when a vertical tab or Unicode space comes before the refresh time (CWE-186). A remote attacker can redirect users of Chromium-based browsers to an untrusted site when the application allows meta refresh elements and sanitizes content with sanitizeFor('head').
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| symfony | symfony/html-sanitizer | 6.1.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.12 | 6.4.51, 7.4.24, 8.1.12 | Patch available | CNA |
| symfony | symfony/symfony | 6.1.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.12 | 6.4.51, 7.4.24, 8.1.12 | Patch available | CNA |
- symfony/html-sanitizer Vendorsymfony Affected 6.1.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 6.4.51, 7.4.24, 8.1.12 Patch available CNA
- symfony/symfony Vendorsymfony Affected 6.1.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 6.4.51, 7.4.24, 8.1.12 Patch available CNA
Remediation
Upgrade symfony/html-sanitizer and symfony/symfony to 6.4.51, 7.4.24 or 8.1.12, matching the release line in use.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
- Fix · CNA symfony/html-sanitizer (Symfony) Fixed in 6.4.51, 7.4.24, 8.1.12
- Fix · CNA symfony/symfony (Symfony) Fixed in 6.4.51, 7.4.24, 8.1.12
Timeline
- 2026-11-25 Threatist record created from CVE-2026-133756
- 2026-11-26 EPSS moved to the 50th–90th percentile
References
More symfony vulnerabilities
- TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
- TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
- TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
- TI-2022-08704 Symfony storing cookie headers in HttpCache CVSS 3.1HIGH 8.8
- TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHP CVSS 4.0HIGH 8.7
- TI-2026-98148 Nested short ternaries make the Symfony expression parser hang CVSS 4.0HIGH 8.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences