Information Exposure Affecting getgrav/grav package, versions >=2.0.0-rc.1, <2.0.22


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.46% (38th 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-GETGRAVGRAV-20079171
  • published24 Sept 2026
  • disclosed17 Sept 2026
  • creditUnknown

Introduced: 17 Sep 2026

NewCVE-2026-92917  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade getgrav/grav to version 2.0.22 or higher.

Overview

getgrav/grav is a Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS.

Affected versions of this package are vulnerable to Information Exposure via the print_r filter in Twig templates when content sandboxing fails to restrict certain filters. An attacker can access sensitive configuration data, including secrets such as SMTP credentials, API tokens, webhook secrets, and cache backend passwords, by rendering specific template code in page content with Twig processing enabled. This is only exploitable if the attacker has authenticated access with page-edit rights and Twig processing is enabled for page content.

References

CVSS Base Scores

version 4.0
version 3.1