GitHub Advisoryadvisory · Packagist

GHSA-3xg3-cgvq-2xwr Twig security issue where escaping was missing when using null coalesce operator

MEDIUM Published 2025-01-29 Modified 2025-01-30 Official page ↗
Aliases
CVE-2025-24374
Ecosystem
Packagist
Packages
twig/twig
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Weaknesses
CWE-74
Reviewed
2025-01-29

Affected packages

• Packagist twig/twig: >= 3.16.0, < 3.19.0 → fixed in 3.19.0

Description

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

Related

Alias · CVE (1)

Weakness · CWE (1)

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness

References