CVE-2023-46734
Symfony potential Cross-site Scripting vulnerabilities in CodeExtension filters
Reported by github_m · Published November 10, 2023
symfony/twig-bridge is fixed in 6.3.8, 5.4.31 and 4.4.51 (Packagist)
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Starting in versions 2.0.0, 5.0.0, and 6.0.0 and prior to versions 4.4.51, 5.4.31, and 6.3.8, some Twig filters in CodeExtension use `is_safe=html` but don't actually ensure their input is safe. As of versions 4.4.51, 5.4.31, and 6.3.8, Symfony now escapes the output of the affected filters.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| symfony/twig-bridge | Packagist | 6.3.8, 5.4.31, 4.4.51 |
| symfony/symfony | Packagist | 6.3.8, 5.4.31, 4.4.51 |
| symfony/serializer | Packagist | 6.3.8, 5.4.31, 4.4.51 |
| twig | sensiolabs | 6.3.8, 5.4.31, 4.4.51 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| symfony | symfony | >= 2.0.0, < 4.4.51, >= 5.0.0, < 5.4.31, >= 6.0.0, < 6.3.8 |
| symfony | twig-bridge | 6.0.0, 5.0.0, 2.0.0 |
| symfony | symfony | 2.0.0, 5.0.0, 6.0.0 |
| symfony | serializer | 2.0.0, 5.0.0, 6.0.0 |
| symfony | symfony | 6.0.0, 5.0.0, 2.0.0 |
| symfony | security-http | 2.0.0, 5.0.0, 6.0.0 |
Timeline
- Nov 10, 2023 CVE Published
- Nov 11, 2023 EPSS Score (30 in total, the first dated here)
- Feb 16, 2025 PoC Published
- Jan 28, 2026 Security Advisory
- Jan 28, 2026 CVE Updated
- Aug 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-46734
vulnetix vdb fixes CVE-2023-46734
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-46734/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/symfony/symfony/security/advisories/GHSA-q847-2q57-wmr3 x_refsource_CONFIRM
- https://github.com/symfony/symfony/commit/5d095d5feb1322b16450284a04d6bb48d1198f54 x_refsource_MISC
- https://github.com/symfony/symfony/commit/9da9a145ce57e4585031ad4bee37c497353eec7c x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2023-46734 advisory
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2023-46734.yaml url
- https://symfony.com/cve-2023-46734 url
- https://github.com/advisories/GHSA-q847-2q57-wmr3 advisory