User Interface (UI) Misrepresentation of Critical Information Affecting symfony/html-sanitizer package, versions <6.4.40>=7.0.0-BETA1, <7.4.12>=8.0.0-BETA1, <8.0.12


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-SYMFONYHTMLSANITIZER-16873892
  • published24 May 2026
  • disclosed20 May 2026
  • creditNicolas Grekas

Introduced: 20 May 2026

NewCVE-2026-45064  (opens in a new tab)
CWE-451  (opens in a new tab)

How to fix?

Upgrade symfony/html-sanitizer to version 6.4.40, 7.4.12, 8.0.12 or higher.

Overview

symfony/html-sanitizer is a Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.

Affected versions of this package are vulnerable to User Interface (UI) Misrepresentation of Critical Information via UrlSanitizer::parse() in the HtmlSanitizer component. An attacker can perform visual spoofing or phishing attacks by supplying URLs containing Unicode bidirectional formatting characters, which are preserved in sanitized href and src attributes. When rendered in a browser, these characters alter the visual ordering of the displayed URL, causing it to appear different from the actual destination.

CVSS Base Scores

version 4.0
version 3.1