Description
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.
Published: 2026-04-16
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Apply Patch
AI Analysis

Impact

The WP Docs plugin stores a value called 'wpdocs_options[icon_size]' without proper sanitization or escaping. A subscriber or higher role can set this value in the plugin’s settings. The value is then persisted in the database and later rendered into web pages without filtering, allowing an attacker to embed arbitrary JavaScript. When a victim user visits a page that includes this value, the injected script runs in the victim’s browser, enabling cookie theft, session hijacking, defacement or execution of malicious actions on behalf of the user.

Affected Systems

Any WordPress installation running the WP Docs plugin version 2.2.9 or earlier is affected. The plugin is distributed by the vendor fahadmahmood (WP Docs).

Risk and Exploitability

The CVSS score of 6.4 indicates a moderate severity vulnerability that can be exploited by any authenticated user with subscriber-level access, the lowest role that can configure the plugin. The materialization of the flaw does not require any network‑level exploits; it relies on legitimate credentials and platform access. EPSS is not available and the issue is not listed in the CISA KEV catalog, suggesting the attack probability is currently unclear, but the output results in cross‑site scripting and can lead to significant compromise of user sessions.

Generated by OpenCVE AI on April 16, 2026 at 08:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update WP Docs to the latest version (2.3 or later) to enable proper input sanitization of the 'icon_size' field.
  • If updating is not immediately possible, restrict the value of 'icon_size' by editing the plugin’s code or the database so that only whitelisted numeric values are accepted, or reset the setting to the default value and prevent further changes via role permissions.
  • Configure role permissions so that only trusted administrators or editors can modify the WP Docs settings, limiting the ability of subscriber or lower‑level users to inject malicious scripts.

Generated by OpenCVE AI on April 16, 2026 at 08:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 16 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 16 Apr 2026 05:45:00 +0000

Type Values Removed Values Added
First Time appeared Fahadmahmood
Fahadmahmood wp Docs
Wordpress
Wordpress wordpress
Vendors & Products Fahadmahmood
Fahadmahmood wp Docs
Wordpress
Wordpress wordpress

Thu, 16 Apr 2026 04:00:00 +0000

Type Values Removed Values Added
Description 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.
Title WP Docs <= 2.2.9 - Authenticated (Subscriber+) Stored Cross-Site Scripting via 'wpdocs_options[icon_size]'
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Fahadmahmood Wp Docs
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-16T13:44:27.331Z

Reserved: 2026-03-10T12:47:39.946Z

Link: CVE-2026-3878

cve-icon Vulnrichment

Updated: 2026-04-16T13:44:11.897Z

cve-icon NVD

Status : Received

Published: 2026-04-16T04:17:09.813

Modified: 2026-04-16T04:17:09.813

Link: CVE-2026-3878

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-16T09:00:05Z

Weaknesses