CVE-2019-16126 Cross-site Scripting in Grav

Medium 6.1 Published Updated

Attackers can execute arbitrary JavaScript in victims' browsers via stored XSS in SVG images, potentially leading to session hijacking or data theft.

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

What is CVE-2019-16126?

CVE-2019-16126 is a medium-severity cross-site scripting vulnerability in n/a, published on 9 Sep 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Grav through 1.6.15 allows (Stored) Cross-Site Scripting due to JavaScript execution in SVG images.

Weakness: CWE-79

Which versions are affected by CVE-2019-16126?

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

PackageAffectedFixed in
getgrav/grav PackagistAll versions1.7.0-beta.8
getgrav/grav PackagistAll versions1.7.0-beta.8

Products include Getgrav Grav Cms.

How do I fix CVE-2019-16126?

Upgrade getgrav/grav to 1.7.0-beta.8 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-2019-16126 being exploited?

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

Sources

Also known as GHSA-6268-v434-45m5.

Is CVE-2019-16126 in your software?

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

Check your SBOMs for free