CVE-2026-133756 in html-sanitizerinfo

Summary

by MITRE • 11/25/2026

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.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/25/2026

A critical bypass vulnerability exists within the MetaRefreshAttributeSanitizer component, specifically affecting how URLs in HTML meta refresh directives are validated against security policies. The flaw stems from an incomplete implementation of whitespace and control character handling during the sanitization process. When a user agent processes a <meta http-equiv="refresh"> tag, it is expected to validate the target URL against allowLinkHosts() and allowLinkSchemes() configurations before executing the redirect. However, due to this vulnerability, if specific non-standard or extended whitespace characters precede the refresh time value in the content attribute, the sanitizer incorrectly returns the HTML unchanged without performing any security checks on the embedded URL. This allows attackers to craft malicious meta tags that bypass existing allowlists and scheme restrictions, leading to unauthorized redirections.

The technical root cause lies in the regex logic used by the sanitizer to identify the start of the refresh time value. Following a previous fix for CVE-2026-121373, the implementation was tightened to only accept ASCII whitespace before the numeric time indicator. However, this adjustment inadvertently created gaps in coverage. Specifically, vertical tabs and several Unicode space characters—including U+1680 (Mongolian Vowel Separator), U+2000 through U+200A (various narrow spaces), U+2028 (Line Separator), U+205F (Medium Mathematical Space), and U+3000 (Ideographic Space)—are not stripped or processed correctly. When any of these characters appear before the time value, such as in a payload like <meta http-equiv="refresh" content="\u{3000}0;url=https://evil.example/">, the sanitizer fails to recognize that sanitization is required and passes the directive through intact. Consequently, Chromium-based browsers interpret this valid HTML structure and execute the redirect to the attacker-controlled domain, effectively ignoring the security filters intended to block malicious destinations.

This vulnerability represents a regression relative to earlier versions of the codebase where vertical tabs were correctly matched by older regular expressions, but it also highlights a long-standing oversight regarding Unicode whitespace that has existed since the sanitizer was originally implemented for meta refresh directives. The operational impact is significant in environments where HTML content from untrusted sources is sanitized using allowStaticElements() or similar configurations that permit meta elements with http-equiv and content attributes processed via sanitizeFor('head', ...). In such contexts, an attacker can exploit this bypass to perform phishing attacks, drive-by downloads, or session hijacking by redirecting users to malicious sites. It is important to note that Firefox and Safari currently exhibit different behavior, as they only skip ASCII whitespace in their native handling of these directives, which may limit the attack surface on those platforms but does not mitigate the risk for Chromium-based user agents.

To remediate this issue, the sanitizer logic must be updated to explicitly handle all forms of Unicode whitespace and invisible control characters that browsers might ignore when parsing meta refresh tags. The validation routine should strip or neutralize these leading non-ASCII spaces before evaluating whether a URL is present in the content attribute. This ensures that any attempt to obfuscate the start of the time value using extended Unicode sequences fails, forcing the sanitizer to apply standard security checks against allowLinkHosts() and allowLinkSchemes(). From an industry standards perspective, this vulnerability aligns with CWE-79 (Improper Neutralization of Input During Web Page Generation) as it involves insufficient sanitization of user-controllable input leading to unintended script or redirect execution. Furthermore, the exploitation technique maps to MITRE ATT&CK T1059.006 (HTML Scripting), where attackers use HTML elements like meta refresh tags to execute malicious actions without invoking traditional JavaScript engines. Organizations relying on this sanitizer should apply immediate patches that enforce strict whitespace normalization and ensure comprehensive coverage of Unicode space categories during the parsing phase.

Responsible

Symfony

Reservation

11/20/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00829

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!