Original description
The register_routes function in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php in the REST API in WordPress 4.7.x before 4.7.2 does not require an integer identifier, which allows remote attackers to modify arbitrary pages via a request for wp-json/wp/v2/posts followed by a numeric value and a non-numeric value, as demonstrated by the wp-json/wp/v2/posts/123?id=123helloworld URI.
Affected software
- WordPress = 4.7.1*= 4.7.2= 4.7 exact match
Details
- Published
- 2017-04-03
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- EPSS (30-day exploit probability)
- 84.94% (percentile 100)
References
- cve.org/CVE-2017-1001000
- nvd.nist.gov/vuln/detail/CVE-2017-1001000
- www.openwall.com/lists/oss-security/2017/02/10/16
- www.securitytracker.com/id/1037731
- blog.sucuri.net/2017/02/content-injection-vulnerability-wordpress-rest-api.html
- blogs.akamai.com/2017/02/wordpress-web-api-vulnerability.html
- codex.wordpress.org/Version_4.7.2
- gist.github.com/leonjza/2244eb15510a0687ed93160c623762ab
- github.com/WordPress/WordPress/commit/e357195ce303017d517aff944644a7a1232926f7
- make.wordpress.org/core/2017/02/01/disclosure-of-additional-security-fix-in-wordpress-4-7-...
- wordpress.org/news/2017/01/wordpress-4-7-2-security-release/
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.