Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0 until 6.4.41, 7.4.13, and 8.0.13, UrlAttributeSanitizer::getSupportedAttributes() omitted URL-bearing attributes on <object>, <applet>, <iframe>, and <img>, and <meta http-equiv="refresh"> URLs inside content bypassed URL sanitization, allowing explicitly enabled elements or attributes to pass javascript: and similar payloads into sanitized output. This issue is fixed in versions 6.4.41, 7.4.13, and 8.0.13.
Published: 2026-07-14
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The UrlAttributeSanitizer component in Symfony omitted URL-bearing attributes on several HTML tags—<object>, <applet>, <iframe>, and <img>—and failed to sanitize URLs included in the content of <meta http-equiv='refresh'> elements. This oversight allows malicious URLs such as javascript:payload to be inserted into enabled elements or attributes and then rendered without sanitization, leading to cross‑site scripting vulnerabilities.

Affected Systems

Versions of the Symfony Framework from 6.1.0 through 6.4.41, as well as the 7.4.13 and 8.0.13 releases of Symfony, and the symfony/html-sanitizer component in those same releases are affected. The issue was fixed in releases 6.4.41, 7.4.13, and 8.0.13 and any newer Symfony releases.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity. The EPSS score of less than 1% suggests that exploitation is unlikely to be widespread at this time. The vulnerability is not listed in the CISA KEV catalog. An attacker can embed malicious URLs in user‑supplied HTML content that bypasses sanitization, potentially executing unauthorized scripts in the victim’s browser.

Generated by OpenCVE AI on August 3, 2026 at 03:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Symfony Framework and symfony/html-sanitizer to the fixed releases 6.4.41, 7.4.13, 8.0.13 or later.
  • Strip or block <object>, <applet>, <iframe>, <img> elements and <meta http-equiv='refresh'> tags or configure UrlAttributeSanitizer to exclude them, addressing the HTML injection weakness (CWE-1023).
  • Validate all user‑supplied URLs against a whitelist of safe schemes and reject JavaScript: and other unsafe protocols, mitigating Cross‑Site Scripting (CWE-79).

Generated by OpenCVE AI on August 3, 2026 at 03:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6312-1 symfony security update
Github GHSA Github GHSA GHSA-x5qj-865h-mgvm Symfony: HtmlSanitizer UrlAttributeSanitizer Misses URL Attributes
History

Mon, 03 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Symfony
Symfony html-sanitizer
Symfony symfony
Vendors & Products Symfony
Symfony html-sanitizer
Symfony symfony

Tue, 21 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 14 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
Description Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0 until 6.4.41, 7.4.13, and 8.0.13, UrlAttributeSanitizer::getSupportedAttributes() omitted URL-bearing attributes on <object>, <applet>, <iframe>, and <img>, and <meta http-equiv="refresh"> URLs inside content bypassed URL sanitization, allowing explicitly enabled elements or attributes to pass javascript: and similar payloads into sanitized output. This issue is fixed in versions 6.4.41, 7.4.13, and 8.0.13.
Title Symfony: HtmlSanitizer UrlAttributeSanitizer Misses URL Attributes on <object>, <applet>, <iframe>, <img> and the URL Inside <meta http-equiv="refresh"> content
Weaknesses CWE-1023
CWE-79
References
Metrics cvssV4_0

{'score': 5.3, 'vector': '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'}


Subscriptions

Symfony Html-sanitizer Symfony
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-21T18:02:30.352Z

Reserved: 2026-05-22T19:39:05.356Z

Link: CVE-2026-48761

cve-icon Vulnrichment

Updated: 2026-07-21T18:02:20.635Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T15:53:24Z

Weaknesses
  • CWE-1023

    Incomplete Comparison with Missing Factors

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')