Information Exposure Affecting twig/twig package, versions >=1.0.0, <1.38.0>=2.0.0, <2.7.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-TWIGTWIG-173776
  • published12 Mar 2019
  • disclosed12 Mar 2019
  • creditFabien Potencier

Introduced: 12 Mar 2019

CVE-2019-9942  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade twig/twig to version 1.38.0, 2.7.0 or higher.

Overview

twig/twig is a flexible, fast, and secure template language for PHP.

Affected versions of this package are vulnerable to Information Exposure due to allowing the evaluation of non-trusted templates in a sandbox, where everything is forbidden if not explicitly allowed by a sandbox policy (tags, filters, functions, method calls, ...).

Note: If you are not using the sandbox, your code is not affected.

CVSS Scores

version 3.1