Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-35696 Overview
CVE-2024-35696 is a reflected cross-site scripting (XSS) vulnerability in the Fahad Mahmood WP Docs plugin for WordPress. The flaw affects all versions of WP Docs up to and including 2.1.3. The plugin fails to properly neutralize user-supplied input during web page generation, allowing attackers to inject arbitrary scripts that execute in a victim's browser.
Exploitation requires a user to interact with a crafted link or request. Successful attacks can lead to session compromise, credential theft, or unauthorized actions performed in the context of the authenticated user. The vulnerability is categorized under [CWE-79].
Critical Impact
Attackers can execute arbitrary JavaScript in the context of a victim's browser session, enabling theft of authentication cookies and hijacking of administrator sessions on affected WordPress sites.
Affected Products
- Fahad Mahmood WP Docs plugin for WordPress
- WP Docs versions from n/a through 2.1.3
- WordPress sites with the WP Docs plugin installed and active
Discovery Timeline
- 2024-06-08 - CVE-2024-35696 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-35696
Vulnerability Analysis
The vulnerability is a reflected cross-site scripting flaw in the WP Docs WordPress plugin. Reflected XSS occurs when user-supplied input is returned by the web application in an HTTP response without proper output encoding or input sanitization. Attackers craft malicious URLs containing script payloads that, when clicked by a victim, cause the browser to execute the injected code.
The scope-changed CVSS vector indicates that a successful attack can affect resources beyond the vulnerable component itself. User interaction is required, meaning a victim must click a crafted link or visit an attacker-controlled page. No authentication is needed to launch the attack against unauthenticated visitors, but the impact escalates significantly when an administrator triggers the payload.
According to Exploit Prediction Scoring System data as of 2026-09-29, no public exploit code has been observed and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Root Cause
The root cause is improper neutralization of user input during web page generation. The plugin reflects request parameters back into HTML responses without applying context-appropriate output encoding, such as esc_html(), esc_attr(), or wp_kses() from the WordPress API. This allows raw HTML and JavaScript payloads to be rendered as active markup rather than inert text.
Attack Vector
The attack vector is network-based and requires user interaction. An attacker crafts a URL pointing to a vulnerable WP Docs endpoint with a JavaScript payload embedded in a reflected parameter. The attacker then delivers the link through phishing email, social media, or a compromised third-party site. When the victim clicks the link, the payload executes in the browser under the origin of the WordPress site, allowing session token theft, forced administrative actions, or drive-by redirection.
No verified proof-of-concept code has been published. See the Patchstack Vulnerability Advisory for additional technical context.
Detection Methods for CVE-2024-35696
Indicators of Compromise
- HTTP request logs containing URL parameters with <script>, javascript:, onerror=, or onload= payloads targeting WP Docs endpoints
- Unexpected outbound requests from browsers of authenticated WordPress administrators to attacker-controlled domains
- WordPress admin sessions initiated from unfamiliar IP addresses shortly after users clicked external links
- Referrer headers showing phishing domains or URL shorteners preceding requests to /wp-docs/ paths
Detection Strategies
- Deploy web application firewall rules that inspect query strings and POST bodies for common XSS payload patterns
- Monitor WordPress access logs for anomalous encoded characters such as %3Cscript%3E or %22%3E%3C in parameters passed to WP Docs
- Enable Content Security Policy reporting to identify script executions from unexpected sources
Monitoring Recommendations
- Correlate suspicious URL requests with subsequent administrative actions in WordPress audit logs
- Alert on WP Docs plugin requests containing HTML entities, script tags, or event handlers in reflected parameters
- Track browser telemetry for anomalous DOM modifications on pages served by the plugin
How to Mitigate CVE-2024-35696
Immediate Actions Required
- Identify all WordPress installations running the WP Docs plugin at version 2.1.3 or earlier
- Update the WP Docs plugin to a fixed version released after 2.1.3 as published by the vendor
- Rotate WordPress administrator credentials and invalidate active sessions if exploitation is suspected
- Review recent administrator activity logs for unauthorized configuration or content changes
Patch Information
Refer to the Patchstack Vulnerability Advisory for the current patched version and remediation guidance. Apply the vendor-supplied update through the WordPress plugin management console or via WP-CLI.
Workarounds
- Deactivate and remove the WP Docs plugin until a patched version can be deployed
- Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins
- Configure a web application firewall to block requests containing XSS payload signatures targeting the plugin
- Restrict access to WordPress administrative interfaces by IP allowlist to limit exposure of privileged sessions
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

