CVE-2023-31506 Cross-site scripting (XSS) vulnerability in Grav

Medium 5.4 Published Updated

Authenticated attackers can execute arbitrary scripts via XSS in Grav CMS, potentially compromising user sessions or data.

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
None listed

What is CVE-2023-31506?

CVE-2023-31506 is a medium-severity cross-site scripting vulnerability in Getgrav Grav, published on 9 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A cross-site scripting (XSS) vulnerability in Grav versions 1.7.44 and before, allows remote authenticated attackers to execute arbitrary web scripts or HTML via the onmouseover attribute of an ISINDEX element.

Weakness: CWE-79

Which versions are affected by CVE-2023-31506?

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

PackageAffectedFixed in
getgrav/grav PackagistAll versionsNone
getgrav/grav PackagistAll versionsNone

Products include Getgrav Grav.

How do I fix CVE-2023-31506?

No fix has been published for CVE-2023-31506 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-2023-31506 being exploited?

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

All Getgrav Grav vulnerabilities

Sources

Also known as GHSA-xrf8-cmrg-7436.

Is CVE-2023-31506 in your software?

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

Check your SBOMs for free