CVE-2016-5834 Cross-site scripting in n/a

Medium 6.1 Published Updated

Remote attackers can inject arbitrary web script or HTML via crafted attachment names in WordPress, potentially leading to session hijacking or malicious actions.

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-2016-5834?

CVE-2016-5834 is a medium-severity cross-site scripting vulnerability in Wordpress Wordpress, published on 29 Jun 2016. 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 wp_get_attachment_link function in wp-includes/post-template.php in WordPress before 4.5.3 allows remote attackers to inject arbitrary web script or HTML via a crafted attachment name, a different vulnerability than CVE-2016-5833.

Weakness: CWE-79

Which versions are affected by CVE-2016-5834?

It affects 1 product.

Products include Wordpress Wordpress.

How do I fix CVE-2016-5834?

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-2016-5834 being exploited?

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

All Wordpress Wordpress vulnerabilities

Sources

Also known as DEBIAN-CVE-2016-5834, GHSA-pj25-83q9-ppf3, UBUNTU-CVE-2016-5834.

Is CVE-2016-5834 in your software?

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

Check your SBOMs for free