Description
The Knowledge Base plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin slug setting in all versions up to, and including, 2.3.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.
Published: 2025-07-18
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting via plugin slug that can execute arbitrary scripts when a user views the affected page
Action: Patch
AI Analysis

Impact

The Knowledge Base plugin for WordPress is vulnerable to stored cross‑site scripting because the plugin slug input is not properly sanitized or escaped when saved. An administrator who modifies the slug can embed malicious JavaScript that will be rendered in any page that includes the slug. When a regular user visits that page, the script runs in the user’s browser, allowing the attacker to steal session cookies, deface or redirect the site, or conduct phishing attacks. The vulnerability is limited to authenticated attackers with administrator privileges and requires the site to be a multi‑site installation with the unfiltered_html capability disabled.

Affected Systems

Affected systems are installations of the Knowledge Base plugin for WordPress version 2.3.1 or earlier, deployed in WordPress multisite environments with the unfiltered_html filter disabled. The plugin is distributed by the vendor Ajay. Any site that has upgraded to 2.3.1 or earlier remains vulnerable; newer releases are assumed to have remedied the issue.

Risk and Exploitability

The CVSS base score of 4.4 indicates a low‑to‑medium severity, and the EPSS score of less than 1% suggests a low likelihood of exploitation in the wild. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires that an attacker already holds administrator privileges; the attack vector is local via authenticated access, so the main risk is upward privilege use among trusted users. Once the slug is tampered with, the stored payload will affect all visitors to the affected page, making this a significant concern for sites with unfiltered_html disabled.

Generated by OpenCVE AI on April 20, 2026 at 20:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Knowledge Base plugin to a version newer than 2.3.1 to remove the unfiltered input handling for the slug field.
  • If an upgrade is not immediately possible, enforce server‑side sanitization of the slug field: allow only alphanumeric characters and limit the length, and escape its output when rendering pages that include the slug.
  • Review existing slug values in the database for injected scripts and remove or escape them to eliminate stored XSS payloads.

Generated by OpenCVE AI on April 20, 2026 at 20:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-21836 The Knowledge Base plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin slug setting in all versions up to, and including, 2.3.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.
History

Fri, 18 Jul 2025 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 18 Jul 2025 02:00:00 +0000

Type Values Removed Values Added
Description The Knowledge Base plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin slug setting in all versions up to, and including, 2.3.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.
Title Knowledge Base <= 2.3.1 - Authenticated (Administrator+) Stored Cross-Site Scripting via Plugin Slug
Weaknesses CWE-79
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T17:16:51.530Z

Reserved: 2025-07-10T13:28:24.596Z

Link: CVE-2025-7431

cve-icon Vulnrichment

Updated: 2025-07-18T13:54:16.566Z

cve-icon NVD

Status : Deferred

Published: 2025-07-18T02:15:24.083

Modified: 2026-06-17T10:04:56.873

Link: CVE-2025-7431

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-20T20:30:16Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')