CVE-2022-0268 Cross-site Scripting (XSS) - Stored in getgrav/grav

Medium 5.7 Published Updated

Stored Cross-Site Scripting in Grav CMS allows attackers to inject malicious scripts, potentially leading to session hijacking or code execution.

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

What is CVE-2022-0268?

CVE-2022-0268 is a medium-severity cross-site scripting vulnerability in Getgrav Grav, published on 25 Jan 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Cross-site Scripting (XSS) - Stored in Packagist getgrav/grav prior to 1.7.28.

Weakness: CWE-79

Which versions are affected by CVE-2022-0268?

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

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

Products include Getgrav Grav.

How do I fix CVE-2022-0268?

Upgrade getgrav/grav to 1.7.28 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-2022-0268 being exploited?

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

All Getgrav Grav vulnerabilities

Sources

Also known as GHSA-735v-wx75-xmmm.

Is CVE-2022-0268 in your software?

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

Check your SBOMs for free