What’s Vulnerable › Vulnerabilities
CVE-2026-42845: Grav: Anonymous Page Content Overwrite via Form File Upload filename Override
- Severity: high (CVSS 7.7 v4.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-11 · updated 2026-10-26
- Weakness: CWE-73
Description
The form plugin for Grav adds the ability to create and use forms. Prior to 9.1.0 , there is an unauthenticated page-content overwrite via file upload (GHSA-w4rc-p66m-x6qq). Public form uploads now strip path components from the POST-supplied filename and hard-block page-content extensions (`md`, `yaml`, `yml`, `json`, `twig`, `ini`) regardless of the configurable dangerous-extensions list. A permissive `accept` policy combined with the default `destination: self@` could otherwise let an attacker overwrite the page's own `.md` and pivot to super-admin via a `process: save` action. This vulnerability is fixed in 9.1.0.
Affected products
- getgrav grav-plugin-form: before 9.1.0
References
- https://github.com/getgrav/grav-plugin-form/commit/48bacc4187e1cff815000e526d5ca2878484867f
- https://github.com/getgrav/grav/security/advisories/GHSA-w4rc-p66m-x6qq
- https://github.com/getgrav/grav/security/advisories/GHSA-w4rc-p66m-x6qq
Get alerted when CVE-2026-42845 or the next vulnerability affects your stack