Live threats

All CVEs / twigphp

CVE-2025-24374twigphp Twig

Medium 4.3 No auth needed

Priority
41
CVSS 3.1
4.3
EPSS
—
Auth required
No
Published
Jan 29, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-74
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Twig.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist twig/twig ≥ 3.16.0 < 3.19.0 3.19.0 composer require "twig/twig:^3.19.0"

Per OSV / GitHub Advisories (GHSA-3xg3-cgvq-2xwr). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.