Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app using non-default HtmlSanitizer config
-
DeliverySubmit HTML with javascript: URL in omitted attribute (data/codebase/longdesc/meta content)
-
ExploitSanitizer omits URL validation, stores payload unchanged
-
ExecutionVictim loads page containing stored payload
-
PersistBrowser evaluates javascript: URI
-
ImpactAttacker executes JS in victim session context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application uses Symfony HtmlSanitizer with a non-default configuration that explicitly allows at least one of the following element-attribute pairs: object with data, applet with codebase, applet with archive, object with codebase, iframe with longdesc, img with longdesc, or meta with content (the last also reachable through allowStaticElements() when rendering in head context). None of these element-attribute combinations are present in Symfony's default W3CReference::BODY_ELEMENTS allow-list; object, applet, and iframe are explicitly absent from body-context defaults, and meta requires an explicit head-context opt-in. Additionally, the application must accept and persist user-supplied HTML that is then rendered to other users (e.g., comment systems, rich-text editors, email preview). Exploitation of the stored-XSS vector requires victim page load (passive user interaction). Authentication requirements at the submission layer are application-defined and not determined by the library itself. |
| Impact | No official CVSS vector was published; all metric assessments below are independently derived. The vulnerability is not in CISA KEV and no standalone public exploit repository has been identified, though functional proof-of-concept payloads (javascript:alert(1) in data, codebase, archive, longdesc, and meta content attributes) are embedded in the vendor advisory itself. EPSS data was not available. Real-world risk is tightly scoped by configuration: only applications that explicitly call allowElement('object', ['data']), allowElement('applet', ['codebase']), allowElement('applet', ['archive']), allowElement('iframe', ['longdesc']), allowElement('img', ['longdesc']), or allow meta with content (including via allowStaticElements() in head context) are exposed. This limits the vulnerable population to a subset of Symfony HtmlSanitizer integrators, but within that population the impact is genuine stored XSS - an attacker who can submit user-generated HTML can persistently execute JavaScript in victim browser sessions. The credibility of the report (Trail of Bits researcher, Nicolas Grekas fix) and the availability of patch releases across all active Symfony branches argue for prompt upgrade even where the configuration risk is low. |
| Exploit ScenarioDerived | An attacker submits a comment or rich-text post to an application whose HtmlSanitizerConfig has been configured with allowElement('object', ['data']), including the payload '<object data="javascript:fetch( |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 15, 2026
Stored XSS in the Symfony HtmlSanitizer component (symfony/html-sanitizer) allows injection of javascript: scheme URLs through HTML attributes not covered by the library's URL sanitization allow-list. The UrlAttributeSanitizer hardcodes a fixed set of URL-bearing attributes to sanitize, omitting data (on object), codebase and archive (on applet), and longdesc (on iframe/img); a related gap allows javascript: URLs embedded in meta http-equiv=refresh content values to pass through unchanged. Only non-default configurations that explicitly opt in to those element-attribute combinations via allowElement() or allowAttribute() are affected - default Symfony configurations are confirmed safe. No public exploit code has been identified at time of analysis, though the vendor advisory includes functional proof-of-concept payloads; the issue was reported by Scott Arciszewski of Trail of Bits.
RemediationAI
Upgrade symfony/html-sanitizer (or symfony/symfony) to the patched releases: 6.4.41 for the 6.x series, 7.4.13 for the 7.x series, or 8.0.13 for the 8.0.x series, as documented in the security advisory at https://github.com/symfony/symfony/security/advisories/GHSA-x5qj-865h-mgvm; the patch commit is https://github.com/symfony/symfony/commit/069a70f9f26e61e9de3b7f9a864a86ed24b36bd0. If an immediate upgrade is not possible, audit every HtmlSanitizerConfig instance in the application and remove any explicit allowElement() or allowAttribute() calls that permit object with data, applet with codebase or archive, object with codebase, iframe or img with longdesc, or meta with content - removing these allowances eliminates the attack surface entirely but may break intentional rich-content features. Applications that rely on meta refresh functionality should delay that workaround until the patch can be applied, as removing the attribute may disrupt redirect-driven flows. No generic compensating controls (WAF rules, CSP) reliably substitute for the library-level fix because the payload reaches stored state before any response-phase control acts on it.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 8 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Symfony HtmlSanitizer component (composer packages symfony/html-sanitizer and symfony/symfony, CWE-79) implements an allow-list-driven HTML sanitizer. Its UrlAttributeSanitizer class maintains a hardcoded list of attributes whose values are passed through UrlSanitizer::sanitize() for scheme validation (javascript: rejection), host allow-listing, and BiDi checks. That list - src, href, lowsrc, background, ping, action, formaction, poster, cite - omits several HTML attributes that also carry navigable or executable URLs: data on object elements, codebase and archive on applet and object elements, and longdesc on iframe and img elements. A second class of gap affects meta http-equiv=refresh: that element encodes its URL inside the composite content attribute (e.g., 0; url=javascript:alert(1)), making it undetectable by a per-attribute-name sanitizer. The root cause (CWE-79) is an incomplete output filter - the sanitizer correctly handles known URL sinks but its enumeration of those sinks is incomplete. The fix adds data, codebase, archive, and longdesc to UrlAttributeSanitizer and introduces a new MetaRefreshAttributeSanitizer that parses the delay;url= syntax and subjects the embedded URL to the same UrlSanitizer pipeline.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Network-accessible stored XSS with scope change; PR:N since the sanitizer layer imposes no auth requirement; UI:R as victim page load is needed to trigger execution.
Primary rating from Vendor (https://github.com/symfony/symfony).
CVSS VectorVendor: https://github.com/symfony/symfony
Lifecycle Timeline
1DescriptionCVE.org
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: <object data=…>, <applet codebase=…>, <applet archive=…> and <object archive=…>, <iframe longdesc=…> and <img longdesc=…>. 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.
<meta http-equiv="refresh" content="0; url=…"> 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 <meta> with the content attribute (e.g. via allowStaticElements()) see content="0; url=javascript:alert(1)" pass through, producing a refresh-driven navigation to a javascript: URL.
Default configurations are not affected: <object>, <applet> and <iframe> are not in W3CReference::BODY_ELEMENTS and <meta> requires an explicit opt-in to <head> context. The vulnerability surface is integrators who explicitly allow any of those elements together with the listed URL-bearing attributes.
Resolution
UrlAttributeSanitizer now also routes data, codebase, archive and longdesc through UrlSanitizer::sanitize(). A new MetaRefreshAttributeSanitizer registered as a default attribute sanitizer detects the <delay>; url=<url> syntax inside <meta content>, sanitizes the embedded URL, and drops the attribute if the URL is rejected; non-refresh meta content values are passed through unchanged.
The patches for this issue are available here for branch 6.4 (and forward-ported to 7.4, 8.0 and 8.1).
Credits
Symfony would like to thank Scott Arciszewski (Trail of Bits) for reporting the issue and Nicolas Grekas for providing the fix.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-44389
GHSA-x5qj-865h-mgvm
NVD
CVE.org
EPSS
VulDB
Exploit-DB