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
·
Updated

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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Symfony HtmlSanitizer to a version that resolves this vulnerability.

    Fixed in 6.4.50
  2. Upgrade

    Upgrade Symfony HtmlSanitizer to a version that resolves this vulnerability.

    Fixed in 7.4.23
  3. Upgrade

    Upgrade Symfony HtmlSanitizer to a version that resolves this vulnerability.

    Fixed in 8.1.11

Event History

Nov 4, 2026
CVE Published
via MITRE·12:59 PM
Data Sourced
via MITRE·12:59 PM
DescriptionWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which configurations are affected?

Any HtmlSanitizer configuration that permits meta elements with http-equiv and content attributes is affected. This includes the documented allowStaticElements() preset.

2

What does an attacker need to exploit this issue?

An attacker needs to supply sanitized HTML containing a meta refresh directive that uses browser-valid refresh syntax not matched by the sanitizer's narrow regular expression. User interaction is required because the impact is navigation to an untrusted site.

3

Do allowed link schemes and hosts mitigate the issue?

No. For the missed refresh formats, the attacker-controlled URL bypasses UrlSanitizer entirely, so allowLinkSchemes and allowLinkHosts are not applied.

4

What can be done before updating?

Prevent untrusted HTML from containing meta elements with http-equiv and content attributes, or disable configurations and presets that allow them. This removes the reachable meta refresh path described for this issue.

5

Which Symfony releases contain the fix?

The issue is fixed in Symfony 6.4.50, 7.4.23, and 8.1.11. Affected releases are 6.1.x before 6.4.50, 7.x before 7.4.23, and 8.x before 8.1.11.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203