Advisories / composer / symfony/html-sanitizer / CVE-2026-48761
Symfony: HtmlSanitizer UrlAttributeSanitizer Misses URL Attributes (CVE-2026-48761)
CVE-2026-48761 GHSA-x5qj-865h-mgvm Published 15 Jun 2026
Affects 2 packages. Each has a fixed release.
$ composer require symfony/html-sanitizer:^6.4.41 $ composer require symfony/html-sanitizer:^7.4.13 $ composer require symfony/html-sanitizer:^8.0.13 $ composer require symfony/symfony:^6.4.41 $ composer require symfony/symfony:^7.4.13 $ composer require symfony/symfony:^8.0.13
Which versions are affected
| Package | Affected | Fixed in |
|---|---|---|
| symfony/html-sanitizer | ≥ 6.1.0, < 6.4.41≥ 7.0.0, < 7.4.13≥ 8.0.0, < 8.0.13 | 6.4.417.4.138.0.13 |
| symfony/symfony | ≥ 6.1.0, < 6.4.41≥ 7.0.0, < 7.4.13≥ 8.0.0, < 8.0.13 | 6.4.417.4.138.0.13 |
Check a site from its project folder:
composer show symfony/html-sanitizer
shows the installed version. Or paste the lock file into the lock file checker to check every package at once.
Timeline
- Advisory published, with a fix
Questions
Which version of symfony/html-sanitizer is safe from CVE-2026-48761?
8.0.13 and later. Versions affected: ≥ 6.1.0, < 6.4.41, ≥ 7.0.0, < 7.4.13, ≥ 8.0.0, < 8.0.13.
Which version of symfony/symfony is safe from CVE-2026-48761?
8.0.13 and later. Versions affected: ≥ 6.1.0, < 6.4.41, ≥ 7.0.0, < 7.4.13, ≥ 8.0.0, < 8.0.13.