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

High 7.7 Published Updated

Editor-role users can exfiltrate sensitive plugin secrets like API keys and passwords by calling Config::toArray() in page content.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-44738?

CVE-2026-44738 is a high-severity vulnerability in Getgrav Grav, published on 11 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Grav is a file-based Web platform. Prior to 2.0.0-rc.2, the Twig sandbox allow-list permits any user with the admin.pages role to call config.toArray() from within a page body, dumping the entire merged site configuration — including all plugin secrets (SMTP passwords, AWS keys, OAuth client secrets, API tokens) — into the rendered HTML. No administrator privileges are required. This vulnerability is fixed in 2.0.0-rc.2.

Weakness: CWE-200

Which versions are affected by CVE-2026-44738?

2 open source packages ship an affected version, including getgrav/grav. It affects 1 product.

PackageAffectedFixed in
getgrav/grav PackagistAll versions2.0.0-rc.2
getgrav/grav PackagistAll versions2.0.0-rc.2

Products include Getgrav Grav.

How do I fix CVE-2026-44738?

Upgrade getgrav/grav to 2.0.0-rc.2 or later.

Is CVE-2026-44738 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44738 exists.

All Getgrav Grav vulnerabilities

Sources

Also known as GHSA-j274-39qw-32c9.

Is CVE-2026-44738 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free