CVE-2021-3904 Cross-site Scripting (XSS) - Stored in getgrav/grav

Medium 6.3 Published Updated

Stored Cross-Site Scripting in Grav CMS allows attackers to inject malicious scripts into web pages viewed by other users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3904?

CVE-2021-3904 is a medium-severity cross-site scripting vulnerability in Getgrav Grav, published on 27 Oct 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

grav is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Weakness: CWE-79

Which versions are affected by CVE-2021-3904?

2 open source packages ship an affected version, including getgrav/grav. It affects 1 product.

PackageAffectedFixed in
getgrav/grav PackagistAll versions1.7.24
getgrav/grav PackagistAll versions1.7.24

Products include Getgrav Grav.

How do I fix CVE-2021-3904?

Upgrade getgrav/grav to 1.7.24 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-2021-3904 being exploited?

There is no known exploitation of CVE-2021-3904 in the wild and no public exploit code.

All Getgrav Grav vulnerabilities

Sources

Also known as GHSA-5jxc-hmqf-3f73.

Is CVE-2021-3904 in your software?

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

Check your SBOMs for free