CVE-2026-48761

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

Published Jul 14, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
First Time appeared Symfony
Symfony html-sanitizer
Symfony symfony
Vendors & Products Symfony
Symfony html-sanitizer
Symfony symfony
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-1023

    Incomplete Comparison with Missing Factors

  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 21, 2026, 6:02 PM
Reserved
May 22, 2026, 7:39 PM
Status
Analyzed
Published
Jul 14, 2026, 8:17 PM
Modified
Jul 21, 2026, 7:17 PM