Skip to main content
Vulnerability Database/CVE-2026-94159

CVE-2026-94159: Total Donations Stored XSS Vulnerability

CVE-2026-94159 is a stored cross-site scripting flaw in the Total Donations WordPress plugin that enables attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published:

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-2026-94159 Overview

CVE-2026-94159 is a stored Cross-Site Scripting (XSS) vulnerability in the KlbTheme Total Donations WordPress plugin. The flaw affects all versions up to and including 2.0.5. Attackers can inject malicious JavaScript that persists in the application and executes in the browsers of users who view the affected pages. The underlying weakness is improper neutralization of input during web page generation [CWE-79].

Exploitation requires user interaction and no privileges, and the attack can cross security scopes. Successful exploitation can lead to session theft, redirection, defacement, or further client-side attacks against site administrators and donors.

Critical Impact

Stored XSS enables persistent script execution in the context of any visitor to the affected WordPress site, including administrators, which can lead to account takeover and site compromise.

Affected Products

  • KlbTheme Total Donations WordPress plugin
  • All versions from unspecified initial release through 2.0.5
  • WordPress sites running the vulnerable totaldonations plugin

Discovery Timeline

  • 2026-10-09 - CVE-2026-94159 published to the National Vulnerability Database
  • 2026-10-11 - Last updated in NVD database

Technical Details for CVE-2026-94159

Vulnerability Analysis

The Total Donations plugin fails to sanitize and escape user-supplied input before rendering it in web pages. An attacker submits crafted input containing HTML or JavaScript payloads through an input vector exposed by the plugin. The server stores the payload, and the application later renders it without proper encoding.

Because the payload is stored, every subsequent visitor who loads the affected page triggers execution of attacker-controlled script in their browser session. The scope change indicates that the script executes outside the vulnerable component's security boundary, affecting broader site resources and users. Impact to confidentiality, integrity, and availability is limited but non-trivial because scripts can access cookies, local storage, and perform authenticated actions on behalf of the victim.

Root Cause

The root cause is missing or insufficient output encoding of stored data when the plugin generates HTML. WordPress provides helper functions such as esc_html(), esc_attr(), and wp_kses() for safe output, and sanitize_text_field() for input filtering. The vulnerable code path omits these controls when rendering donation-related content, allowing active markup to persist in the DOM.

Attack Vector

The attack is network-reachable with low complexity. An unauthenticated attacker submits a crafted payload through a plugin-exposed input field. User interaction is required: a victim, typically an administrator reviewing donation data or a visitor loading a donation page, must view the page containing the stored payload. The payload then runs in the victim's browser under the site's origin.

For technical specifics, see the Patchstack XSS Vulnerability Advisory.

Detection Methods for CVE-2026-94159

Indicators of Compromise

  • Unexpected <script>, <svg>, <iframe>, or event-handler attributes stored in donation-related database tables or post metadata
  • Outbound requests from administrator browsers to unfamiliar domains after loading donation pages
  • New or modified WordPress administrator accounts following access to plugin-rendered pages
  • Unusual JavaScript errors or Content Security Policy (CSP) violations originating from Total Donations pages

Detection Strategies

  • Audit records written by the Total Donations plugin for HTML tags, JavaScript keywords, or encoded payloads such as javascript:, onerror=, or onload=
  • Monitor WordPress access logs for POST requests to plugin endpoints containing suspicious payload patterns
  • Deploy a Web Application Firewall (WAF) with signatures tuned for stored XSS payload submission

Monitoring Recommendations

  • Enable CSP in report-only mode to surface script-source violations on donation pages
  • Alert on administrator session cookies being transmitted to non-site domains
  • Track file integrity for the wp-content/plugins/totaldonations/ directory and the WordPress wp_options and wp_postmeta tables for anomalous entries

How to Mitigate CVE-2026-94159

Immediate Actions Required

  • Identify all WordPress sites running the Total Donations plugin at version 2.0.5 or earlier
  • Disable or remove the plugin until a vendor patch is available and applied
  • Review stored donation records and plugin-managed content for injected scripts and remove malicious entries
  • Rotate administrator credentials and invalidate active sessions if indicators of compromise are present

Patch Information

At the time of publication, the NVD entry does not list a fixed version. Monitor the vendor's plugin page and the Patchstack XSS Vulnerability Advisory for an update beyond version 2.0.5 and apply it as soon as it becomes available.

Workarounds

  • Deactivate the Total Donations plugin until a vendor fix is published
  • Deploy a WAF rule set that blocks XSS payloads targeting plugin input parameters
  • Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins
  • Restrict access to the WordPress admin interface by IP allowlist to reduce the exposure of privileged users to stored payloads
bash
# Example restrictive CSP header for WordPress (nginx)
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; frame-ancestors 'self'; base-uri 'self'" always;

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.