{"id":"CVE-2023-46734","aliases":["CVE-2023-46734","GHSA-q847-2q57-wmr3","BIT-SYMFONY-2023-46734"],"related":[],"kind":"vulnerability","state":"published","title":"Symfony potential Cross-site Scripting vulnerabilities in CodeExtension filters","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Description\n\nSome Twig filters in CodeExtension use \"is_safe=html\" but don't actually ensure their input is safe.\n\n### Resolution\n\nSymfony now escapes the output of the affected filters.\n\nThe patch for this issue is available [here](https://github.com/symfony/symfony/commit/9da9a145ce57e4585031ad4bee37c497353eec7c) for branch 4.4.\n\n### Credits\n\nWe would like to thank Pierre Rudloff for reporting the issue and to Nicolas Grekas for providing the fix.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2023-11-10T17:49:55.188Z","modified":"2026-09-10T03:49:59.261Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 2.0.0, < 4.4.51","status":"affected"},{"version":">= 5.0.0, < 5.4.31","status":"affected"},{"version":">= 6.0.0, < 6.3.8","status":"affected"}],"vendor":"symfony","product":"symfony","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"4.4.51"}],"ecosystem":"Packagist","package":"symfony/twig-bridge","purl":"pkg:composer/symfony/twig-bridge","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.4.31"}],"ecosystem":"Packagist","package":"symfony/twig-bridge","purl":"pkg:composer/symfony/twig-bridge","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.3.8"}],"ecosystem":"Packagist","package":"symfony/twig-bridge","purl":"pkg:composer/symfony/twig-bridge","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"4.4.51"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.4.31"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.3.8"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"4.4.51"},{"status":"affected","introduced":"5.0.0","fixed":"5.4.31"},{"status":"affected","introduced":"6.0.0","fixed":"6.3.8"}],"vendor":"sensiolabs","product":"symfony","cpe":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"4.4.51"},{"status":"affected","introduced":"5.0.0","fixed":"5.4.31"},{"status":"affected","introduced":"6.0.0","fixed":"6.3.8"}],"vendor":"symfony","product":"twig-bridge","cpe":"cpe:2.3:a:symfony:twig-bridge:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"4.4.51"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.4.31"},{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.3.8"}],"ecosystem":"Bitnami","package":"symfony","purl":"pkg:bitnami/symfony","source":"bitnami"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-q847-2q57-wmr3","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/symfony/symfony/commit/5d095d5feb1322b16450284a04d6bb48d1198f54","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/symfony/symfony/commit/9da9a145ce57e4585031ad4bee37c497353eec7c","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/11/msg00019.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46734","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2023-46734.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/symfony/symfony","tags":["package"],"sources":["ghsa"]},{"url":"https://symfony.com/cve-2023-46734","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-03T15:11:26.071Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-46734","url":"https://www.cve.org/CVERecord?id=CVE-2023-46734","licence":"CVE Terms of Use","modified":"2025-02-13T17:14:33.867Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q847-2q57-wmr3","url":"https://github.com/advisories/GHSA-q847-2q57-wmr3","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:59.261Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-46734","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46734","licence":"Public domain","modified":"2026-07-29T18:36:47.633Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-SYMFONY-2023-46734","url":"https://osv.dev/vulnerability/BIT-SYMFONY-2023-46734","licence":"Apache-2.0","modified":"2024-03-06T11:25:28.861Z"}],"updatedAt":"2026-11-25T22:58:30.308Z","epss":{"score":0.00733,"percentile":0.50383,"date":"2026-11-30T12:00:22.000Z"}}