Home › Vulnerabilities › Symfony
Three symfony/html-sanitizer flaws let crafted URLs bypass link and media allow-lists
Three advisories published on 2026-12-01 describe URL-filtering gaps in composer:symfony/html-sanitizer, one rated MEDIUM (CVSS 5.3) and two rated LOW (CVSS 2.3). The records describe bypasses of the sanitizer's URL allow-lists rather than code execution, and none says the flaws are known to be exploited.
What to look into
- 3 vulnerabilities in composer:symfony/html-sanitizer: 1 medium, 2 low (CVSS up to 5.3).
- None of them is known to be exploited yet.
- Start with CVE-2026-121373 (5.3 medium): Symfony MetaRefreshAttributeSanitizer Vulnerability (CVE-2026-121373) Allows Bypass of URL Filtering. An attacker without an account can exploit this over the network if a user views or visits something.
- 3 of 3 can be attacked over the network without logging in.
- Kinds of flaws: Incomplete List of Disallowed Inputs (×2); Overly Restrictive Regular Expression; URL Redirection to Untrusted Site ('Open Redirect'); Incomplete Comparison with Missing Factors.
Key points
- CVE-2026-121373 (MEDIUM, CVSS 5.3) lets meta refresh URLs skip the sanitizer's scheme and host allow-lists, including javascript: URLs.
- CVE-2026-121949 (LOW, CVSS 2.3) leaves srcset and imagesrcset without a URL sanitizer, bypassing media allow-lists.
- CVE-2026-118517 (LOW, CVSS 2.3) exploits a parsing disagreement between RFC 3986 and WHATWG when allowRelativeLinks(true) is set.
- The records describe URL policy bypasses, not code execution, and do not say any of the flaws are known to be exploited.
Overview
Three advisories published together on 2026-12-01 cover composer:symfony/html-sanitizer. The flaws share one theme: the sanitizer lets some browser-active URLs through without the checks meant to apply to them. None of the records describe code execution, and none says the flaws are known to be exploited.
The most severe issue
CVE-2026-121373 is rated MEDIUM (CVSS 5.3). The MetaRefreshAttributeSanitizer, introduced for CVE-2026-48761, checks refresh URLs only for one syntax. The browser grammar is broader, so some refresh directives skip UrlSanitizer entirely. According to the record, this defeats allowLinkSchemes and allowLinkHosts for the refresh navigation, and a javascript: refresh URL is not filtered either. It is reachable under any configuration that allows meta with http-equiv and content, including the documented allowStaticElements() preset.
Lower-severity issues
CVE-2026-121949 (LOW, CVSS 2.3) concerns srcset and imagesrcset. The W3C reference policy allows these attributes, but no URL sanitizer is registered for them, so media scheme and host allow-lists can be bypassed. The record describes a URL policy bypass, not JavaScript execution. Exploitation requires a configuration that allows these attributes and relies on media restrictions.
CVE-2026-118517 (LOW, CVSS 2.3) concerns how UrlSanitizer parses URLs. league/uri follows RFC 3986, while browsers follow the WHATWG URL standard, so a string such as http:evil.example can pass a host check that the browser then ignores. The record says this applies when allowRelativeLinks(true) is set.
Who is affected and what to do
Sites that sanitize untrusted HTML with these options are in scope. The sources do not name a fixed version, and the CVE-2026-121373 text is cut off before its resolution details, so exact patched releases are not stated here. Review whether your policy allows meta refresh, srcset or imagesrcset, and relative links alongside host allow-lists, and check the vendor or Composer metadata for the release that contains the fix. No workaround is given in the sources.
What to do
- Check whether your sanitizer configuration allows meta with http-equiv and content, including allowStaticElements().
- Check whether srcset, imagesrcset or link[rel=preload][imagesrcset] are allowed alongside allowMediaHosts() or allowMediaSchemes().
- Check whether allowRelativeLinks(true) is combined with allowLinkHosts or allowLinkSchemes.
- Update to the release containing the fixes; the sources do not name a fixed version, so confirm it with the vendor or Composer metadata.
The 3 vulnerabilities
- CVE-2026-121373 5.3 Symfony MetaRefreshAttributeSanitizer Vulnerability (CVE-2026-121373) Allows Bypass of URL Filtering
- CVE-2026-121949 2.3 Description W3CReference::ATTRIBUTES marks srcset and imagesrcset as allowed attributes, but UrlAttributeSanitizer::getSupportedAttributes() does not list them, so no URL sanitizer is registered for either. The DOM visitor preserves an att…
- CVE-2026-118517 2.3 Symfony HtmlSanitizer URL host allow-list bypass via scheme-only URLs (CVE-2026-118517)
Frequently asked questions
How many composer:symfony/html-sanitizer vulnerabilities were published on December 1, 2026?
3 vulnerabilities: 1 medium, 2 low, with CVSS scores up to 5.3.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-121373 (CVSS 5.3): Symfony MetaRefreshAttributeSanitizer Vulnerability (CVE-2026-121373) Allows Bypass of URL Filtering.