Description
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php in the REST API implementation in WordPress 4.7 before 4.7.1 does not properly restrict listings of post authors, which allows remote attackers to obtain sensitive information via a wp-json/wp/v2/users request.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | wordpress | 4.7.1+dfsg-1 | — |
| Debian 13 | wordpress | 4.7.1+dfsg-1 | — |
| Debian 12 | wordpress | 4.7.1+dfsg-1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- WordPress Core < 4.7.1 - Username Enumeration EDB-41497 · webapps · Mar 3, 2017
GitHub 9 repositories
-
patilkr/wp-CVE-2017-5487-exploit ★ 2 · Apr 26, 2020
WordPress CVE-2017-5487 Exploit in Python
-
GeunSam2/CVE-2017-5487 ★ 2 · Jun 10, 2019
POC of CVE-2017-5487 + tool
-
R3K1NG/wpUsersScan ★ 1 · Feb 17, 2018
Wordpress Username Enumeration /CVE-2017-5487,WordPress < 4.7.1 -
-
ndr-repo/CVE-2017-5487 ★ 0 · May 10, 2025
PoC for CVE-2017-5487 - WordPress User Enumeration via REST
-
tpdlshdmlrkfmcla/cve-2017-5487 ★ 0 · Mar 8, 2025
cve-2017-5487 wp rest api 취약점
-
dream434/CVE-2017-5487 ★ 0 · May 27, 2024
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php in the REST API implementation in WordPress 4.7 before 4.7.1 does not properly restrict listings of post authors, which allows remote…
-
SeasonLeague/CVE-2017-5487 ★ 0 · Jan 29, 2023
This is a vulnerability in the Linux kernel that was discovered and disclosed in 2017.
-
zkhalidul/GrabberWP-CVE-2017-5487 ★ 0 · Nov 4, 2021
-
teambugsbunny/wpUsersScan ★ 0 · Oct 22, 2017
Wordpress Username Enumeration /CVE-2017-5487,WordPress < 4.7.1 -
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 41497 exploit
- https://wpvulndb.com/vulnerabilities/8715
- https://codex.wordpress.org/Version_4.7.1
- https://github.com/WordPress/WordPress/commit/daf358983cc1ce0c77bf6d2de2ebbb43df2add60
- [oss-security] 20170114 Re: CVE Request: Wordpress: 8 security issues in 4.7 mailing-list
- https://www.wordfence.com/blog/2016/12/wordfence-blocks-username-harvesting-via-new-rest-api-wp-4-7/
- 1037591 vdb-entry
- https://wordpress.org/news/2017/01/wordpress-4-7-1-security-and-maintenance-release/
- 95391 vdb-entry