CVE-2017-5490 Cross-site scripting in n/a

Medium 6.1 Published Updated

Remote attackers can inject arbitrary web script or HTML via a crafted theme directory name in WordPress.

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

CVE-2017-5490 is a medium-severity cross-site scripting vulnerability in Wordpress Wordpress, published on 15 Jan 2017. 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

Cross-site scripting (XSS) vulnerability in the theme-name fallback functionality in wp-includes/class-wp-theme.php in WordPress before 4.7.1 allows remote attackers to inject arbitrary web script or HTML via a crafted directory name of a theme, related to wp-admin/includes/class-theme-installer-skin.php.

Weakness: CWE-79

Which versions are affected by CVE-2017-5490?

It affects 1 product.

Products include Wordpress Wordpress.

How do I fix CVE-2017-5490?

Upgrade to a fixed version.

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-5490 being exploited?

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

All Wordpress Wordpress vulnerabilities

Sources

Also known as DEBIAN-CVE-2017-5490, GHSA-p45m-x7rq-w3r2, UBUNTU-CVE-2017-5490.

Is CVE-2017-5490 in your software?

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

Check your SBOMs for free