{"id":"CVE-2026-61842","title":"Grav is a file-based Web platform","summary":"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 …","severity":"medium","cvss":6.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","cwe":["CWE-200"],"vendor":"getgrav","product":"getgrav/grav","affected":["getgrav/grav < 2.0.2"],"patched":["getgrav/grav 2.0.2"],"published":"2026-08-19","updated":"2026-09-09","sourceUpdated":"2026-09-09T21:13:25.910","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-61842","references":[{"url":"https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6","label":"security-advisories@github.com"},{"url":"https://github.com/getgrav/grav/releases/tag/2.0.2","label":"security-advisories@github.com"},{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-mc5q-6hpj-rp7j","label":"security-advisories@github.com"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61842"},{"url":"https://github.com/advisories/GHSA-mc5q-6hpj-rp7j"}],"tags":["nvd","ghsa","composer"],"epss":0.00321,"epssPercentile":0.25317,"aliases":["GHSA-mc5q-6hpj-rp7j"],"ecosystem":"composer","ingestedAt":"2026-09-02T21:51:03.971Z","slug":"CVE-2026-61842","body":"## Overview\n\nGrav 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2026-61842)\n\nAffected packages:\n\n- `getgrav/grav < 2.0.2`\n\nPatched in:\n\n- `getgrav/grav 2.0.2`\n\nSource: https://github.com/advisories/GHSA-mc5q-6hpj-rp7j","depth":"sunlit","depthScore":36,"depthScoreParts":{"impact":35.8,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}