CVE-2026-61842
Grav is a file-based Web platform. Prior to 2.0.2, the Grav Twig …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6
- github.com/getgrav/grav/releases/tag/2.0.2
- github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j
- nvd.nist.gov/vuln/detail/CVE-2026-61842
- github.com/advisories/GHSA-mc5q-6hpj-rp7j
- nvd.nist.gov/vuln/detail/CVE-2026-61842
- cve.org/CVERecord?id=CVE-2026-61842
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.