CVE-2026-121949
Last modified
CVE-2026-121949 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. The Symfony HtmlSanitizer component does not apply the media URL policy to the srcset and imagesrcset attributes, allowing values that point to hosts or schemes not permitted by allowMediaSchemes() or allowMediaHosts() to bypass it, so that browsers load images from disallowed hosts 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 srcset attribute on img and source elements and the imagesrcset attribute on link elements are allowed by the sanitizer, but their URL candidates are never validated, so their values are kept verbatim while the same URL in src is dropped. The fixes for CVE-2026-45753 and CVE-2026-48761 extended the same attribute list but did not cover these two attributes.
Description
The Symfony HtmlSanitizer component does not apply the media URL policy to the srcset and imagesrcset attributes, allowing values that point to hosts or schemes not permitted by allowMediaSchemes() or allowMediaHosts() to bypass it, so that browsers load images from disallowed hosts 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 srcset attribute on img and source elements and the imagesrcset attribute on link elements are allowed by the sanitizer, but their URL candidates are never validated, so their values are kept verbatim while the same URL in src is dropped. The fixes for CVE-2026-45753 and CVE-2026-48761 extended the same attribute list but did not cover these two attributes. For example, with allowMediaSchemes(['https']) and allowMediaHosts(['trusted.example']), <img srcset="https://evil.example/a.png 1x"> survives sanitization, and the browser fetches the selected candidate as it would fetch src. Candidates with a scheme forbidden by the configuration, such as http, are kept as well. Any application that sanitizes untrusted HTML and relies on the media schemes and hosts allowlists to restrict where images can be loaded from is affected. A single crafted value is enough to make the browser of a user viewing the sanitized content send a request to an attacker-controlled host, which can be used to track viewers or log their IP addresses. No authentication is needed if the application accepts HTML from unauthenticated users.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| sensiolabs | symfony | >= 6.1.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-121949?
How severe is CVE-2026-121949?
How do I fix CVE-2026-121949?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-121941libmt32emu before 2.8.4 contains a heap buffer overflow vuln…7.8
- CVE-2026-121942ZBar through 0.23.95 contains an out-of-bounds read vulnerab…6.1
- CVE-2026-121943Irontec sngrep through 1.9.0 contains an out-of-bounds stack…4.8
- CVE-2026-121944sngrep through 1.9.0 contains an infinite loop vulnerability…5.5
- CVE-2026-121945CoopCycle coopcycle-web before 6.20.1 contains a broken acce…7.6
- CVE-2026-121946zbateson mail-mime-parser before 3.0.9 and 4.x before 4.0.6 …7.2
- CVE-2026-12195myVesta is affected by an authenticated remote code executio…8.5
- CVE-2026-121950FreeRDP before 3.32.2 does not check the product of surface …6.5
- CVE-2026-121951FreeRDP 3.0.0 before 3.32.2 server-side RDP peer input parsi…7.5
- CVE-2026-121952FreeRDP before 3.32.2 has an out-of-bounds write in the prox…9.8
- CVE-2026-121953FreeRDP before 3.32.2 has a use-after-free in the client's r…9.8
- CVE-2026-121954FreeRDP before 3.32.2 has a heap out-of-bounds write in the …6.5
Are you affected by CVE-2026-121949?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
