Quick answers
- Is CVE-2026-61842 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-61842 being exploited in the wild.
- How severe is CVE-2026-61842?
- Medium severity, with a CVSS score of 6.5, published 2 September 2026.
- Which products and versions are affected?
- getgrav/grav (Packagist) < 2.0.2.
- Is there a fix for CVE-2026-61842?
- A patch was published on 2026-09-02: Fixed in Grav 2.0.2 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-61842 attacked?
- It is attacked over the network, in a web application.
- Am I affected by CVE-2026-61842?
- Check whether you run getgrav/grav (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The vulnerability is a sandbox bypass combining two allow-listed primitives. The `SandboxConfig` facade replaces the `config` variable and strips dangerous methods, but `grav.offsetGet('config')` retrieves the raw `Config` object because the sandbox only replaces the variable, not the underlying container. The allow-listed dump filters (`json_encode`, `print_r`, `yaml_encode`) serialize objects at the PHP level without calling the sandbox method gate, so the stripped methods are irrelevant. The exploit is reachable on stock installs through modular page content (pages with `_`-prefixed slugs), which are sandboxed-rendered even with `twig_content.process_enabled` false, bypassing the XSS scan. Minimal privileges required: any `admin.pages` author or filesystem write access to `user/pages`. The leak is read-only and does not include `security.salt`, which lives outside the config tree.
Affected products
- getgrav grav < 2.0.2
Identifiers
- CVE-2026-61842
- GHSA-mc5q-6hpj-rp7j
Timeline
- 2026-09-02: disclosed: GitHub Security Advisory published
- 2026-09-02: patched: Fixed in Grav 2.0.2
- 2026-08-19: kev added: Published to NVD