CVE-2025-64059 Cross-site scripting in Grav

Low 1.8 Published Updated

Administrators can inject JavaScript via the Home Page editor, potentially leading to stored XSS, though relevance is disputed due to existing admin privileges.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-64059?

CVE-2025-64059 is a low-severity cross-site scripting vulnerability in getgrav Grav, published on 13 Sep 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Grav 1.7.50.2 allows admins to enter JavaScript via the Home Page editor. NOTE: the relevance of this for stored XSS is disputed because admins are allowed to modify templates, install plugins, and upload other executable content.

Weakness: CWE-79

Which versions are affected by CVE-2025-64059?

How do I fix CVE-2025-64059?

No fix has been published for CVE-2025-64059 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-64059 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-64059 exists.

Sources

Also known as GHSA-2x7f-7273-jx2j.

Is CVE-2025-64059 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free