6.1medium
Symfony potential Cross-site Scripting vulnerabilities in CodeExtension filters
- Severity
- 6.1medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.73% (higher than 50% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-q847-2q57-wmr3BIT-SYMFONY-2023-46734
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| symfony symfony | >= 2.0.0, < 4.4.51, >= 5.0.0, < 5.4.31, >= 6.0.0, < 6.3.8 | CVE List |
| symfony/twig-bridge (Packagist) | from 2.0.0 before 4.4.51, from 5.0.0 before 5.4.31, from 6.0.0 before 6.3.8 | GitHub Advisory Database |
| symfony/symfony (Packagist) | from 2.0.0 before 4.4.51, from 5.0.0 before 5.4.31, from 6.0.0 before 6.3.8 | GitHub Advisory Database |
| debian debian_linux | 10.0 | NVD |
| sensiolabs symfony | from 2.0.0 before 4.4.51, from 5.0.0 before 5.4.31, from 6.0.0 before 6.3.8 | NVD |
| symfony twig-bridge | from 2.0.0 before 4.4.51, from 5.0.0 before 5.4.31, from 6.0.0 before 6.3.8 | NVD |
| symfony (Bitnami) | from 2.0.0 before 4.4.51, from 5.0.0 before 5.4.31, from 6.0.0 before 6.3.8 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Description
Some Twig filters in CodeExtension use "is_safe=html" but don't actually ensure their input is safe.
Resolution
Symfony now escapes the output of the affected filters.
The patch for this issue is available here for branch 4.4.
Credits
We would like to thank Pierre Rudloff for reporting the issue and to Nicolas Grekas for providing the fix.
NVD (es)
Symfony es un framework PHP para aplicaciones web y de consola y un conjunto de componentes PHP reutilizables. A partir de las versiones 2.0.0, 5.0.0 y 6.0.0 y anteriores a las versiones 4.4.51, 5.4.31 y 6.3.8, algunos filtros Twig en CodeExtension usan `is_safe=html` pero en realidad no garantizan su la entrada es segura. A partir de las versiones 4.4.51, 5.4.31 y 6.3.8, Symfony ahora escapa a la salida de los filtros afectados.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-46734 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q847-2q57-wmr3 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-46734 changed 2026-07-29 | Public domain |
| Bitnami Vulnerability Database | BIT-SYMFONY-2023-46734 changed 2024-03-06 | Apache-2.0 |