Vulnerability 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 Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6
- https://github.com/getgrav/grav/releases/tag/2.0.2
- https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j
FAQ
What is CVE-2026-61842?
CVE-2026-61842 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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, ...
How severe is CVE-2026-61842?
CVE-2026-61842 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-61842?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.