All vulnerabilities

Servers and applications

CVE-2026-48761

HtmlSanitizer UrlAttributeSanitizer Misses URL Attributes on <object>, <applet>, <iframe>, <img> and the URL Inside <meta http-equiv="refresh"> content

Severity
Medium
Published
27 May 2026
Last changed
27 May 2026
Added to UpHeron
3 Nov 2026
Fixed in
6.4.41, 7.4.13, 8.0.13
Exploit chance
0.3% in the next 30 daysHigher than 18% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)CWE-1023
Also known as
GHSA-x5qj-865h-mgvm
Sources
Project advisories (GitHub)

Description

Symfony\Component\HtmlSanitizer\Visitor\AttributeSanitizer\UrlAttributeSanitizer::getSupportedAttributes() enumerates the attribute names whose values are scrubbed through UrlSanitizer::sanitize() (scheme and host allow-lists, javascript: rejection, BiDi check, etc.). The list is ['src', 'href', 'lowsrc', 'background', 'ping', 'action', 'formaction', 'poster', 'cite']. Other URL-bearing attributes are absent: , , and , and . When an integrator opts these elements/attributes in via allowElement('object', ['data']), allowElement('applet', ['codebase']), etc., or via allowAttribute(), no URL sanitization runs: data="javascript:alert(1)" and similar payloads ship through unchanged into the output, enabling stored XSS.

is the same class of bug routed differently: the URL is embedded inside a multi-field content attribute that the per-attribute sanitizer cannot detect from the attribute name alone. Integrators who enable with the content attribute (e.g.

From symfony/symfony's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
SymfonyServers and applications · github:symfony/symfony
  • From 6.1 before 6.4.41
  • From 7 before 7.4.13
  • From 8 before 8.0.13

About Symfony

PHP web application framework for MVC applications

From Wikidata, CC0 1.0.
Developers who used it in the past year
4%Stack Overflow Developer Survey 2025, 2025
Monthly downloads (Packagist)
321,952Packagist, 15 Nov 2026
Total downloads (Packagist)
88,437,595Packagist, 15 Nov 2026
GitHub stars
31,439GitHub, 15 Nov 2026
Forks
9,949GitHub, 15 Nov 2026
Latest release
v8.2.0-BETA2GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
Developer
SensioLabsWikidata
License
MIT LicenseWikidata
Written in
PHPWikidata
First released
22 Oct 2005Wikidata
First published on GitHub
4 Jan 2010GitHub

Release lines

ReleaseLatestSecurity fixes
8.18.1.11Until 31 Jan 2027
8.08.0.16Ended 31 Jul 2026
7.4 (LTS)LTS7.4.23Until 30 Nov 2029
7.37.3.11Ended 31 Jan 2026
7.27.2.9Ended 31 Jul 2025
7.17.1.11Ended 31 Jan 2025

From endoflife.date.

References