CVE-2025-24374
JSON

4.3medium

Twig fixes a security issue where escaping was missing when using null coalesce operator (??)

Severity
4.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-3xg3-cgvq-2xwr

Description

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.

Affected

Product or packageVersionsReported by
twigphp Twig>= 3.16.0, < 3.19.0CVE List
twig/twig (Packagist)from 3.16.0 before 3.19.0GitHub Advisory Database

All scores

GitHub_M4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
GitHub4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Classification

CWE-74

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

When using the ?? operator, output escaping was missing for the expression on the left side of the operator.

NVD (es)

Twig es un lenguaje de plantillas para PHP. Al utilizar el operador ??, no se podía escapar la salida de la expresión del lado izquierdo del operador. Esta vulnerabilidad se ha corregido en la versión 3.19.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-24374 changed 2025-01-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-3xg3-cgvq-2xwr changed 2025-01-30CC-BY-4.0
NVDCVE-2025-24374 changed 2026-06-17Public domain