CVE-2026-138530 in PW WooCommerce Gift Cards Plugininfo

Summary

by MITRE • 12/05/2026

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in pimwick PW WooCommerce Gift Cards pw-woocommerce-gift-cards allows Stored XSS.This issue affects PW WooCommerce Gift Cards: from n/a before 2.58.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 12/05/2026

The identified security flaw represents a classic instance of Improper Neutralization of Input During Web Page Generation, commonly known as Cross-site Scripting or XSS. Specifically, this vulnerability is classified under the CWE-79 standard and manifests within the PW WooCommerce Gift Cards plugin for WordPress environments. The core technical deficiency lies in the application's failure to adequately sanitize or encode user-supplied input before it is rendered back into the web page context. This lack of proper validation allows an attacker to inject malicious client-side scripts, such as JavaScript, which are then executed by the victim's browser when they view the affected content. The severity of this issue is significantly amplified because it constitutes a Stored XSS vulnerability rather than a reflected one. In stored attacks, the malicious payload is permanently saved on the target server, typically within a database or comment field, meaning that every user who views the compromised page will execute the script without needing to click a specially crafted link.

The operational impact of this vulnerability extends beyond simple defacement or session hijacking in many contexts. Because PW WooCommerce Gift Cards handles sensitive e-commerce data and customer interactions, an attacker could leverage this stored XSS vector to steal administrative credentials, capture payment information, or perform actions on behalf of authenticated users with elevated privileges. For instance, if the vulnerable input field is accessible by administrators during gift card creation or management, a malicious actor could craft a payload that exfiltrates session cookies or performs state-changing requests when an admin loads the dashboard. This effectively bypasses standard authentication mechanisms and allows for unauthorized access to critical business logic within the WooCommerce ecosystem. The vulnerability affects versions of the plugin from its initial release up through version 2.58, indicating a long-standing exposure window where systems running these older iterations remain susceptible to exploitation without immediate patching or mitigation strategies in place.

From an offensive security perspective aligned with MITRE ATT&CK frameworks, this vulnerability facilitates techniques related to Client-side Scripting Injection and potentially Account Manipulation if the XSS is used to steal credentials for privilege escalation. The persistence of the payload ensures that the attack vector remains active until the malicious content is manually removed from the database or the plugin is updated. This persistent nature makes it particularly dangerous in multi-user environments where multiple staff members might access the gift card management interface, thereby increasing the blast radius of a single successful injection attempt.

To mitigate this risk, immediate action should be taken to update the PW WooCommerce Gift Cards plugin to version 2.58 or later, as these versions contain patches addressing the input validation deficiencies. For organizations unable to patch immediately due to compatibility constraints, temporary mitigations include implementing strict Content Security Policy headers that restrict script execution sources and disabling unnecessary user roles that have access to gift card management features. Additionally, deploying a Web Application Firewall with rules specifically tuned for detecting XSS payloads can provide an additional layer of defense by blocking malicious requests before they reach the application logic. Regular security audits and code reviews focusing on input sanitization practices are recommended to prevent similar vulnerabilities in future development cycles.

Responsible

Patchstack

Reservation

11/29/2026

Disclosure

12/05/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!