CVE-2017-9516 Craft CMS XSS Vulnerability

Medium 5.4 Published Updated

Attackers can execute arbitrary scripts in user browsers by uploading malicious SVG files to Craft CMS.

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-2017-9516?

CVE-2017-9516 is a medium-severity cross-site scripting vulnerability in Craftcms Craft Cms, published on 8 Jun 2017. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Craft CMS before 2.6.2982 allows for a potential XSS attack vector by uploading a malicious SVG file.

Weakness: CWE-79

Which versions are affected by CVE-2017-9516?

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

PackageAffectedFixed in
craftcms/cms PackagistAll versions2.6.2982
craftcms/cms PackagistAll versions2.6.2982

Products include Craftcms Craft Cms.

How do I fix CVE-2017-9516?

Upgrade craftcms/cms to 2.6.2982 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-2017-9516 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

All Craftcms Craft Cms vulnerabilities

Sources

Also known as GHSA-6pvw-hh48-jx7p.

Is CVE-2017-9516 in your software?

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

Check your SBOMs for free