# Grav: UserInterface offsetget/offsetexists allow-listed in Twig sandbox let editor-authored content leak hashed_password and 2FA secrets via offsetGet()

High severity, published 2026-09-17. Update getgrav/grav to 2.0.16 or later: composer update getgrav/grav.

Canonical URL: https://buzzphp.com/security/ghsa-3jhr-mxmx-38cx · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.7) |
| Published | 2026-09-17 |
| Updated | 2026-09-17 |
| CVE | [CVE-2026-76839](https://nvd.nist.gov/vuln/detail/CVE-2026-76839) |
| GHSA | [GHSA-3jhr-mxmx-38cx](https://github.com/advisories/GHSA-3jhr-mxmx-38cx) |
| Weakness | CWE-522 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| getgrav/grav | <= 2.0.15 | 2.0.16 |

## What to do

Update getgrav/grav to 2.0.16 or later: composer update getgrav/grav.

Check which version you run with `composer show getgrav/grav`, and every affected package with `composer audit`.

## About this advisory

Summary

system/config/security.yaml's Twig sandbox policy allow-lists offsetget and offsetexists for Grav\Common\User\Interfaces\UserInterface. The concrete Grav\Common\User\DataUser\User class does not filter which fields offsetGet() returns, so any sandboxed template with access to a User object can read hashedpassword, secret (2FA seed), and twofasecret directly, bypassing the redaction Grav's own code applies everywhere else.

The core evidence, from Grav's own code

system/src/Grav/Common/User/DataUser/User.php:

system/config/security.yaml:



## Links

- [GHSA-3jhr-mxmx-38cx on GitHub](https://github.com/advisories/GHSA-3jhr-mxmx-38cx)
- [CVE-2026-76839 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-76839)
- [All Composer security advisories](https://buzzphp.com/security)
