CVE-2026-61842: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in getgrav grav
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.
AI Analysis
Technical Summary
The Grav Twig content sandbox prior to version 2.0.2 permits the grav.offsetGet('config') method to return the raw configuration object. This object can be serialized using json_encode, print_r, yaml_encode, and string filters without enforcement of GravSecurityPolicy::checkMethodAllowed. Consequently, a user with page-author permissions can render sandboxed content that exposes sensitive plugin configuration secrets such as SMTP credentials, API keys, and database credentials. This vulnerability is classified as CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor).
Potential Impact
An attacker with page-author permissions can access sensitive configuration data that should be protected, including SMTP credentials, API keys, and plugin database credentials. This exposure can lead to further compromise of the system or connected services. The vulnerability does not affect confidentiality beyond the exposed configuration data and does not impact integrity or availability.
Mitigation Recommendations
This vulnerability is fixed in Grav version 2.0.2. Users should upgrade to version 2.0.2 or later to remediate this issue. No other mitigation or temporary workaround is indicated.
CVE-2026-61842: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in getgrav grav
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 v3.1
Score 6.5medium
Affected software
getgrav
grav
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Grav Twig content sandbox prior to version 2.0.2 permits the grav.offsetGet('config') method to return the raw configuration object. This object can be serialized using json_encode, print_r, yaml_encode, and string filters without enforcement of GravSecurityPolicy::checkMethodAllowed. Consequently, a user with page-author permissions can render sandboxed content that exposes sensitive plugin configuration secrets such as SMTP credentials, API keys, and database credentials. This vulnerability is classified as CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor).
Potential Impact
An attacker with page-author permissions can access sensitive configuration data that should be protected, including SMTP credentials, API keys, and plugin database credentials. This exposure can lead to further compromise of the system or connected services. The vulnerability does not affect confidentiality beyond the exposed configuration data and does not impact integrity or availability.
Mitigation Recommendations
This vulnerability is fixed in Grav version 2.0.2. Users should upgrade to version 2.0.2 or later to remediate this issue. No other mitigation or temporary workaround is indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-10T20:28:17.512Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a85cdc8acd9273b4944357c
Added to database: 08/19/2026, 15:37:44 UTC
Last enriched: 08/19/2026, 15:59:56 UTC
Last updated: 10/02/2026, 11:26:16 UTC
Views: 71
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.