Yoast SEO <= 17.2 - Full Path Disclosure
Strategic Overview
- Status
- Patched in 17.3
- Affected Version
< 17.3- CVSS
- 5.3Medium
- Weakness type
- CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor
- CVE
CVE-2021-25118
At a glance
CVE-2021-25118 is a medium-severity Exposure of Sensitive Information to an Unauthorized Actor vulnerability in the Yoast SEO WordPress plugin, affecting versions < 17.3. It carries a CVSS score of 5.3 (reachable over the network; low attack complexity). Exploitation requires no authentication. The issue is fixed in version 17.3; sites on affected versions should update now. Disclosed October 2021, reported by Fariq Fadillah Gusti Insani (fariqfgi).
Vulnerability Overview
The Yoast SEO plugin for WordPress is vulnerable to Sensitive Data Exposure in versions up to, and including, 17.2 via the /wp/v2/posts REST endpoints that discloses the full internal path of featured images from posts. This makes it possible for unauthenticated attackers to extract sensitive data which consists of full site path information which can be used to exploit other vulnerabilities.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no privileges on the target site, and no interaction from a victim user.
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Reaching this weakness in Yoast SEO < 17.3 takes a caller who can reach the endpoint. Sensitive information exposure means data the application intended to keep internal is returned to a caller who should not be able to see it.
The disclosed data — credentials, tokens, customer records or internal paths — is usually worth more as material for a follow-up attack than as an end in itself. For Yoast SEO the fix is 17.3: builds < 17.3 are affected, anything from 17.3 onward is not.
Remediation
Update to version 17.3, or a newer patched version
How does WordSec protect against this?
The fix is the thing that ends this: Yoast SEO 17.3 closes this, and updating the plugin is the step that ends it.
- Alerts
External References
Related records
Same weakness class
Other vulnerabilities in Yoast SEO – Advanced SEO with real-time guidance and built-in AI
- 8.8CVE-2015-2292: Yoast SEO <= 1.7.3.3 Blind SQL Injection
CVE-2015-2292 - 7.5CVE-2015-2293: Yoast SEO <= 1.7.3.3 Cross-Site Request Forgery
CVE-2015-2293 - 6.6CVE-2018-19370: Yoast SEO <= 9.1.0 Race Condition to RCE
CVE-2018-19370 - 6.5Yoast SEO <= 1.4.6 Missing Authorization
- 6.4CVE-2026-15425: Yoast SEO <= 28.0 Stored Cross-Site Scripting
CVE-2026-15425 - 6.4CVE-2026-3427: Yoast SEO <= 27.1.1 Stored Cross-Site Scripting
CVE-2026-3427 - 6.4CVE-2026-1293: Yoast SEO <= 26.8 Stored Cross-Site Scripting
CVE-2026-1293 - 6.4CVE-2024-4984: Yoast SEO <= 22.6 Stored Cross-Site Scripting
CVE-2024-4984
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C