CVE-2026-75831 Grav before 2.0.15 Stored XSS via audio/video source URL

Medium 5.1 Published Updated

Attackers can inject malicious scripts via media URLs in Grav CMS, leading to arbitrary code execution in victim sessions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-75831?

CVE-2026-75831 is a medium-severity cross-site scripting vulnerability in getgrav grav, published on 18 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Grav before 2.0.15 contains a stored cross-site scripting vulnerability in the audio and video media rendering through the sourceParsedownElement method. The media URL fragment is concatenated unescaped into rawHtml source elements, allowing attackers to inject arbitrary HTML and JavaScript that executes in viewers' sessions.

Weakness: CWE-79

Which versions are affected by CVE-2026-75831?

2 open source packages ship an affected version, including getgrav/grav.

PackageAffectedFixed in
getgrav/grav PackagistAll versions2.0.15
getgrav/grav PackagistAll versions2.0.15

How do I fix CVE-2026-75831?

Upgrade getgrav/grav to 2.0.15 or later.

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-2026-75831 being exploited?

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

Sources

Also known as GHSA-6qw9-4vv5-jr97.

Is CVE-2026-75831 in your software?

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

Check your SBOMs for free