GHSA-wm2w-4mgj-vw33: 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 OSV·12:59 PM
Data Sourced
via OSV·12:59 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this bypass?

Deployments are exposed when they use the Symfony HtmlSanitizer component and permit meta elements with both http-equiv and content attributes. This includes the documented allowStaticElements() preset.

2

What does an attacker need to exploit it?

An attacker needs a way to supply HTML that is processed by the sanitizer and retained in a meta refresh directive. They can use browser-valid refresh syntax that has whitespace after the delay without a semicolon or comma, or that omits the optional url= keyword.

3

Why do URL scheme and host allowlists not prevent the redirect?

For refresh directives the regular expression does not recognize, the sanitizer returns the content unchanged. The attacker-controlled URL therefore bypasses UrlSanitizer, defeating both allowLinkSchemes and allowLinkHosts for that refresh navigation.

4

Which versions need remediation?

Affected versions are Symfony 6.1.x before 6.4.50, 7.x before 7.4.23, and 8.x before 8.1.11. Upgrade to the applicable fixed version.

5

What can be done if upgrading is not immediately possible?

Prevent sanitized content from allowing meta elements with http-equiv and content attributes, including by avoiding the allowStaticElements() preset where it enables them. This removes the stated reachable path for meta refresh navigation.

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