CVE-2026-121373

Symfony: HtmlSanitizer MetaRefreshAttributeSanitizer Matches Only a Narrow Subset of the Browser Refresh Grammar (Incomplete Fix for CVE-2026-48761)

Published Nov 4, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Meta tags using the http-equiv="refresh" attribute are now subject to a sanitization bypass because the regular expression in Symfony's MetaRefreshAttributeSanitizer is too narrow. This allows an attacker to embed a URL that escapes the framework's UrlSanitizer and bypasses both allowLinkSchemes and allowLinkHosts, resulting in an unexpected redirection to an untrusted site. The weakness is a form of open redirect that can occur in any configuration that permits meta tags, including the documented allowStaticElements() preset.

Affected Systems

Vendors affected are SensioLabs' Symfony framework. All releases in the 6.1.x line before 6.4.50, the 7.x line before 7.4.23, and the 8.x line before 8.1.11 are vulnerable. The fix is incorporated in Symfony 6.4.50 and later, 7.4.23 and later, and 8.1.11 and later version releases.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity, and the vulnerability is client‑side, meaning it can be triggered simply by serving crafted HTML content that contains a malicious refresh directive. Because the attack does not rely on server‑side configuration beyond enabling meta tags, the potential for exploitation is broad and could be used to conduct phishing or drive users to malicious sites. While EPSS data is unavailable, the fact that this is not recorded in CISA's KEV catalog suggests that there is no widespread exploitation yet, but the risk remains for organizations that host content permitting meta refresh tags.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Symfony to a version that includes the fix (at least 6.4.50 for the 6.x line, 7.4.23 for the 7.x line, or 8.1.11 for the 8.x line).
  • If an upgrade is not immediately possible, avoid allowing meta tags with http-equiv="refresh" in your templates or user‑supplied content.
  • Review and, if necessary, remove or restrict the use of the allowStaticElements() preset to limit rendering of meta tags that could carry a refresh directive.

Generated by OpenCVE AI on November 4, 2026 at 14:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Sensiolabs
Sensiolabs symfony
Vendors & Products Sensiolabs
Sensiolabs symfony
Type Values Removed Values Added
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.
Title Symfony: HtmlSanitizer MetaRefreshAttributeSanitizer Matches Only a Narrow Subset of the Browser Refresh Grammar (Incomplete Fix for CVE-2026-48761)
Weaknesses CWE-186
CWE-601
References
Metrics cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-186

    Overly Restrictive Regular Expression

  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

Sources

Status
PUBLISHED
Assigner
Checkmarx
Published
Updated
Nov 4, 2026, 6:20 PM
Reserved
Nov 3, 2026, 11:38 AM
Status
Awaiting Analysis
Published
Nov 4, 2026, 1:17 PM
Modified
Nov 6, 2026, 9:40 PM