Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
The WP Docs plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'wpdocs_options[icon_size]' parameter in all versions up to, and including, 2.2.9 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AnalysisAI
Stored Cross-Site Scripting (XSS) in WP Docs plugin for WordPress (all versions through 2.2.9) allows authenticated attackers with subscriber-level access to inject malicious scripts via the 'wpdocs_options[icon_size]' parameter due to insufficient input sanitization and output escaping. The injected scripts execute in the context of any user accessing the affected page, enabling session hijacking, credential theft, or malware distribution with no user interaction required beyond normal site browsing. No public exploit code has been identified, but the vulnerability is technically straightforward to exploit given valid subscriber credentials.
Technical ContextAI
The vulnerability stems from improper handling of the 'wpdocs_options[icon_size]' parameter in the WP Docs plugin, a WordPress plugin designed to manage documentation. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), resulting from both insufficient input sanitization during parameter processing and inadequate output escaping when rendering the parameter value in HTML context. WordPress plugins process user-supplied settings through the options API; when plugin developers fail to use functions like sanitize_text_field() during input and esc_attr() or esc_html() during output, attacker-supplied JavaScript can persist in the WordPress database and execute in any user's browser. The CPE string cpe:2.3:a:fahadmahmood:wp_docs:*:*:*:*:*:*:*:* indicates the vulnerability affects all versions of the plugin authored by Fahad Mahmood.
RemediationAI
Update the WP Docs plugin to version 2.2.10 or later. The fix is available in WordPress plugin repository changeset 3481830 (https://plugins.wordpress.org/changeset/3481830/wp-docs), which addresses the vulnerability by implementing proper input sanitization using WordPress sanitization functions and output escaping using appropriate escaping functions such as esc_attr() for HTML attributes. Organizations unable to upgrade immediately should restrict the 'manage_options' capability (which controls access to plugin settings) to trusted administrator accounts only, and implement Content Security Policy (CSP) headers with script-src restrictions to limit the execution scope of injected scripts, though this is a temporary control and not a substitute for patching. Additionally, review WordPress user roles and remove subscriber-level access from users who do not require it, reducing the attack surface to those with legitimate need to modify plugin settings.
Stored Cross-Site Scripting in the WP Docs WordPress plugin (versions ≤2.3.1) allows authenticated subscribers to inject
The WP Docs plugin for WordPress is vulnerable to time-based SQL Injection via the 'dir_id' parameter in all versions up
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Fahad Mahmo
Unauth. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no authentication required, low at
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Fahad Mahmood WP D
Missing Authorization vulnerability in Fahad Mahmood WP Docs wp-docs allows Exploiting Incorrectly Configured Access Con
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Fahad Mahmo
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-23168