PW WooCommerce Gift Cards <= 2.57 - Unauthenticated HTML Injection via Gift Card To, From, and Message Fields
- ID
- WPSEC-2026-4325
- Plugin
- PW WooCommerce Gift Cards (pw-woocommerce-gift-cards)
- Affected
- all versions before 2.58
- Remediation
- Update to 2.58 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
- Weakness
- CWE-80
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-01
- Attack surface
- PW WooCommerce Gift Cards on WPSec AttackSurface
- Fix released
- Published
Description
The PW WooCommerce Gift Cards plugin for WordPress is vulnerable to HTML Injection via the gift card To, From, and Message fields in all versions up to, and including, 2.57. This is due to insufficient input sanitization and output escaping. The values are only passed through sanitize_text_field()/sanitize_textarea_field(), which leave tag-like sequences with whitespace after the opening angle bracket intact. When the order item meta is displayed, wp_kses_post() turns those sequences into real HTML elements. This makes it possible for unauthenticated attackers who order a gift card to inject arbitrary HTML that wp_kses_post() allows, such as links, images and styled elements, into the order details viewed by store administrators.
References
- https://wpsec.com/vuln/WPSEC-2026-4325/
- https://plugins.svn.wordpress.org/pw-woocommerce-gift-cards/tags/2.58/
- https://wordpress.org/plugins/pw-woocommerce-gift-cards/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS