VDB
Sign up
MEDIUM4.3

GHSA-3xg3-cgvq-2xwr

Twig security issue where escaping was missing when using null coalesce operator

Quick fix

GHSA-3xg3-cgvq-2xwr — twig/twig: upgrade to the fixed version with the command below.

composer require twig/twig:^3.19.0

Details

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

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/twig/twig
Introduced in: 3.16.0Fixed in: 3.19.0
Fixcomposer require twig/twig:^3.19.0

References