{
 "id": "WPSEC-2026-4325",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4325/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4325/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4325/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4325.json",
 "title": "PW WooCommerce Gift Cards <= 2.57 - Unauthenticated HTML Injection via Gift Card To, From, and Message Fields",
 "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.",
 "plugin": {
  "slug": "pw-woocommerce-gift-cards",
  "name": "PW WooCommerce Gift Cards",
  "full_name": "PW WooCommerce Gift Cards",
  "wordpress_org": "https://wordpress.org/plugins/pw-woocommerce-gift-cards/",
  "advisories_url": "https://wpsec.com/vuln/plugin/pw-woocommerce-gift-cards/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/pw-woocommerce-gift-cards"
 },
 "type": "CONTENT INJECTION",
 "cwe": [
  "CWE-80"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 4.7,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "2.58",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 2.58"
  ]
 },
 "introduced_in": null,
 "fixed_in": "2.58",
 "remediation": "Update to 2.58 or later.",
 "fix_released": "2026-11-30T15:59:56+00:00",
 "published": "2026-12-01T16:48:27+00:00",
 "updated": "2026-12-01T10:54:07.032887+00:00",
 "also_published_as": null,
 "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/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/pw-woocommerce-gift-cards",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-12-01"
 }
}