# Grav: Path Traversal in ImageMedium::watermark() — arbitrary file disclosure via publicly-cached images

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

Canonical URL: https://buzzphp.com/security/ghsa-w3f4-8pj2-599w · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-09-17 |
| Updated | 2026-09-17 |
| CVE | [CVE-2026-69089](https://nvd.nist.gov/vuln/detail/CVE-2026-69089) |
| GHSA | [GHSA-w3f4-8pj2-599w](https://github.com/advisories/GHSA-w3f4-8pj2-599w) |
| Weakness | CWE-22 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| getgrav/grav | = 2.0.10 | 2.0.11 |

## What to do

Update getgrav/grav to 2.0.11 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

Reported by: Nihad Huseynli (@nihaddhuseynli (https://github.com/nihaddhuseynli)) — nihadd.huseynli@gmail.com

▎ Note: I attempted to report this via security@getgrav.org first, per SECURITY.md, but the email bounced with 550 5.1.1 Address does not exist. Filing directly here instead.

Path Traversal in ImageMedium::watermark() leading to arbitrary file disclosure via publicly-served images

Summary

The watermark media action, documented and allow-listed for use in editor-authored Markdown image syntax, passes its $image argument unsanitized into UniformResourceLocator::findResource(). That resolver only lexically collapses ..

## Links

- [GHSA-w3f4-8pj2-599w on GitHub](https://github.com/advisories/GHSA-w3f4-8pj2-599w)
- [CVE-2026-69089 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-69089)
- [All Composer security advisories](https://buzzphp.com/security)
