Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.1.0-BETA1 until 6.4.40, 7.4.12, and 8.0.12, UrlSanitizer::parse() passes Unicode explicit-direction BiDi formatting characters through into sanitized href and src attributes, allowing sanitized content to display a link destination that visually differs from the actual destination and enabling phishing-style visual spoofing. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.
Published: 2026-07-14
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

UrlSanitizer::parse() in Symfony's HtmlSanitizer component passes Unicode explicit‑direction BiDi formatting characters into sanitized href and src attributes, letting sanitized content display a link destination that visually differs from its actual destination. This creates phishing‑style visual spoofing for releases from 6.1.0‑BETA1 through 6.4.40, 7.4.12, and 8.0.12. The issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12. The weakness is represented by CWE‑1007 and CWE‑451.

Affected Systems

The flaw affects the Symfony framework and its HtmlSanitizer component in versions from 6.1.0‑BETA1 through 6.4.40, from 7.4.12, and from 8.0.12. Users running any of these releases without applying the patch are susceptible, while later releases (6.4.40 or newer, 7.4.12 or newer, 8.0.12 or newer) contain the fix.

Risk and Exploitability

With a CVSS score of 2.3 and an EPSS score of less than 1%, the likelihood of exploitation is low and it is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply crafted HTML that includes invisible BiDi characters in URL attributes, typically achieved via injection or template abuse. Successful exploitation leads to deceptive user clicks and potential credential theft rather than code execution or system compromise.

Generated by OpenCVE AI on August 1, 2026 at 09:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Symfony framework and HtmlSanitizer component to version 6.4.40 or newer, 7.4.12 or newer, or 8.0.12 or newer, which contain the official fix.
  • Configure the HtmlSanitizer to strip Unicode explicit‑direction BiDi formatting if such a setting is available.
  • Validate user‑submitted URLs to remove or encode invisible BiDi characters before they are passed to the sanitizer.

Generated by OpenCVE AI on August 1, 2026 at 09:22 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-h5vq-qfcg-4m6p Symfony's HtmlSanitizer URL Attributes Pass Through BiDi Override Characters → Visual href Spoofing
History

Tue, 21 Jul 2026 19: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:00: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-BETA1 until 6.4.40, 7.4.12, and 8.0.12, UrlSanitizer::parse() passes Unicode explicit-direction BiDi formatting characters through into sanitized href and src attributes, allowing sanitized content to display a link destination that visually differs from the actual destination and enabling phishing-style visual spoofing. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.
Title Symfony: HtmlSanitizer URL Attributes Pass Through BiDi Override Characters → Visual href Spoofing
Weaknesses CWE-1007
CWE-451
References
Metrics cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-21T19:09:27.830Z

Reserved: 2026-05-08T18:45:10.095Z

Link: CVE-2026-45064

cve-icon Vulnrichment

Updated: 2026-07-21T19:09:24.414Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T09:30:03Z

Weaknesses
  • CWE-1007

    Insufficient Visual Distinction of Homoglyphs Presented to User

  • CWE-451

    User Interface (UI) Misrepresentation of Critical Information