Advisory record · GHSA-j274-39qw-32c9

Grav: Twig sandbox allows editor-role users to exfiltrate all plugin secrets via Config::toArray()

CVSS 7.7 HighEPSS 0.0028 · 20th percentile

Published by the GitHub Advisory Database at 13 May 2026, 15:29 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
getgrav/gravPackagist<2.0.0-rc.22.0.0-rc.2
Identifiers
GHSA-j274-39qw-32c9 · CVE-2026-44738 · PKSA-jw9z-qj9h-1drk
Weakness (CWE)
CWE-200
Published
13 May 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Grav, the Packagist package getgrav/grav, versions before 2.0.0-rc.2, is affected. A user with the editor role (admin.pages permission) can create a page that uses Twig with sandboxing, and because the Twig sandbox allows calling toArray() on the configuration object, they can output the full merged site configuration into the rendered page. This exposes plugin secrets such as SMTP passwords, AWS keys, and OAuth client secrets, without administrator privileges. Upgrade to 2.0.0-rc.2 or later, which contains the fix.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.7 High 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0028, the 20th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 13:58 UTC First seen by agentprime
  2. 31 Oct 2026, 13:58 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.