CVE-2017-5612: WordPress XSS in posts list table excerpt

CVE-2017-5612 · Severity: medium · CVSS 6.1 · Published 2017-01-30

WordPress, a popular website management and blogging platform, was found to have a security flaw in how it displays post summaries in the administrative dashboard. An attacker could use this to inject malicious scripts that execute in the browser of a site administrator. This could lead to unauthorized actions being performed on the site or the theft of sensitive session information.

Technologies: Wordpress. Vendors: Wordpress.

Quick answers

Is CVE-2017-5612 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2017-5612 being exploited in the wild.
How severe is CVE-2017-5612?
Medium severity, with a CVSS score of 6.1, published 30 January 2017.
Which products and versions are affected?
Wordpress < 4.7.2.
Is there a fix for CVE-2017-5612?
A patch was published on 2017-01-26: WordPress 4.7.2 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2017-5612 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2017-5612?
Check whether you run Wordpress at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A stored cross-site scripting (XSS) vulnerability exists in 'wp-admin/includes/class-wp-posts-list-table.php' within WordPress versions prior to 4.7.2. The root cause is the improper neutralization of input when rendering post excerpts in 'Excerpt' mode within the posts list table; specifically, the code used 'the_excerpt()' which did not sufficiently escape HTML entities for that context. An attacker with the ability to create or edit posts (or by tricking a user into doing so) can inject malicious JavaScript into the excerpt field. When an administrator views the posts list in excerpt mode, the script executes in their browser context. The fix involves using 'esc_html(get_the_excerpt())' to ensure the output is properly escaped.

Affected products

  • WordPress WordPress < 4.7.2

Timeline

  • 2017-01-26: patched: WordPress 4.7.2 released
  • 2017-01-30: disclosed: NVD publication date

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.