{"id":"CVE-2025-24374","summary":"Twig fixes a security issue where escaping was missing when using null coalesce operator (??)","details":"Twig is a template language for PHP. When using the ?? operator, output escaping was missing for the expression on the left side of the operator. This vulnerability is fixed in 3.19.0.","aliases":["GHSA-3xg3-cgvq-2xwr"],"modified":"2026-08-12T03:51:37.158531281Z","published":"2025-01-29T15:22:34.012Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-74"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24374.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24374.json"},{"type":"ADVISORY","url":"https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24374"},{"type":"FIX","url":"https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/twigphp/twig","events":[{"introduced":"475ad2dc97d65d8631393e721e7e44fb544f0561"},{"fixed":"38576b12f05df3cc871bf68f39ccb46b418334a3"}],"database_specific":{"extracted_events":[{"introduced":"3.16.0"},{"fixed":"3.19.0"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v3.18.0","v3.17.1","v3.17.0","v3.16.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-24374.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"}]}