LowGHSA-vxrc-68xx-x48gCVE-2019-9942

Twig Sandbox Information Disclosure

Published 26 Mar 2022 · Updated 16 Feb 2024

Affected packages

twig/twigComposer
Affected
<1.38.0
Fixed in
1.38.0
Update to the fixed version for your release line, for example:composer require twig/twig:^1.38.0
twig/twigComposer
Affected
>=2.0.0 <2.7.0
Fixed in
2.7.0
Update to the fixed version for your release line, for example:composer require twig/twig:^2.7.0

Details

A sandbox information disclosure exists in Twig before 1.38.0 and 2.x before 2.7.0 because, under some circumstances, it is possible to call the __toString() method on an object even if not allowed by the security policy in place.

Is GHSA-vxrc-68xx-x48g in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected twig/twig, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.