CVE-2026-61842
Received Received - Intake

Grav Twig Sandbox Configuration Exposure Vulnerability

Vulnerability report for CVE-2026-61842, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-19

Last updated on: 2026-08-19

Assigner: GitHub, Inc.

Description

Grav is a file-based Web platform. Prior to 2.0.2, the Grav Twig content sandbox permits grav.offsetGet('config') to return the raw configuration object and permits json_encode, print_r, yaml_encode, and string filters to serialize that object without passing through GravSecurityPolicy::checkMethodAllowed. A user with page-author permissions can render sandboxed content that exposes plugins.* configuration secrets, including SMTP credentials, API keys, and plugin database credentials. This issue is fixed in version 2.0.2.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-19
Last Modified
2026-08-19
Generated
2026-08-19
AI Q&A
2026-08-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
getgrav grav 2.0.2

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-200 The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-61842 is a security flaw in Grav, a file-based web platform. It allows page authors with limited permissions to bypass security restrictions and access sensitive configuration data. The vulnerability occurs because the Grav Twig content sandbox permits access to the raw configuration object and allows serialization methods like json_encode or print_r to expose secrets without proper checks.

Detection Guidance

To detect this vulnerability, check if your Grav CMS version is below 2.0.2. Run commands like 'composer show getgrav/grav' or check the version in the admin panel. Inspect security.yaml for 'twig_sandbox.allowed_methods' containing 'offsetGet' or '__get' for Grav class.

Impact Analysis

An attacker with page-author permissions could exploit this to read sensitive configuration secrets, including SMTP credentials, API keys, and plugin database credentials. This could lead to unauthorized access to systems, data breaches, or further attacks on the platform.

Compliance Impact

This vulnerability could lead to exposure of sensitive data, violating GDPR's data protection principles and HIPAA's security requirements for protected health information. Organizations using vulnerable Grav versions may face compliance violations, legal penalties, and reputational damage.

Mitigation Strategies

Upgrade Grav CMS to version 2.0.2 or later immediately. Remove 'offsetGet' and '__get' from 'twig_sandbox.allowed_methods' in system/config/security.yaml. Restrict object-dumping filters in sandboxed environments to prevent config exfiltration.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-61842. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart