GIVE YOUR AGENT THE EVIDENCE

Set up in your agent.

One prompt to get started. Paste it into your coding agent to connect cve.new through MCP and bring vulnerability context into your workflow.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GIVE YOUR AGENT THE EVIDENCE

Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Check your stack
DRUPAL-CORE-2022-016high7.5

Drupal uses the Twig third-party library for content templating and sanitization.

Impact

Drupal uses the Twig third-party library for content templating and sanitization. Twig has released a security update that affects Drupal. Twig has rated the vulnerability as high severity.

Source excerpt · OSV
Applies when

The vulnerability is mitigated by the fact that an exploit is only possible in Drupal core with a restricted access administrative permission.

Affected packages

Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.

drupal/core Packagist
Affected rangeRecorded fix
From 8.0.0 before 9.3.22Ecosystem versions9.3.22
From 9.4.0 before 9.4.7Ecosystem versions9.4.7

Version evidence: OSV · DRUPAL-CORE-2022-016

View original version evidence (268 explicit versions)
twig/twig Packagist
Affected rangeRecorded fix
From 1.0.0 before 1.44.7Ecosystem versions1.44.7
From 2.0.0 before 2.15.3Ecosystem versions2.15.3
From 3.0.0 before 3.4.3Ecosystem versions3.4.3

Version evidence: OSV · GHSA-52m2-vc4m-jj33

View original version evidence (193 explicit versions)

Original source description

Drupal uses the Twig third-party library for content templating and sanitization. Twig has released a security update that affects Drupal. Twig has rated the vulnerability as high severity.

Drupal core's code extending Twig has also been updated to mitigate a related vulnerability.

Multiple vulnerabilities are possible if an untrusted user has access to write Twig code, including potential unauthorized read access to private files, the contents of other files on the server, or database credentials.

The vulnerability is mitigated by the fact that an exploit is only possible in Drupal core with a restricted access administrative permission. Additional exploit paths for the same vulnerability may exist with contributed or custom code that allows users to write Twig templates.

References