CVE-2025-7431

Knowledge Base <= 2.3.1 - Authenticated (Administrator+) Stored Cross-Site Scripting via Plugin Slug

Published Jul 18, 2025 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
Metrics ssvc

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

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.

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 5:16 PM
Reserved
Jul 10, 2025, 1:28 PM
Status
Deferred
Published
Jul 18, 2025, 2:15 AM
Modified
Jun 17, 2026, 10:04 AM