NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2025-24374: Twig security issue where escaping was missing when using null coalesce operator

mediumCVSS 3.1 4.3GHSA-3xg3-cgvq-2xwr

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

Published Jan 29, 2025 · Updated Jan 30, 2025

Affected packages

twig/twig

Ecosystem
Composer (PHP)
Affected
>= 3.16.0, < 3.19.0
Fixed in
3.19.0
Check
composer show twig/twig

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to PhilETaylor, fabpot.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries