# Advanced Product Fields (Product Addons) for WooCommerce <= 1.7.4 - Unauthenticated HTML Injection via Product Field Values

- **ID:** WPSEC-2026-3964
- **Plugin:** Advanced Product Fields (Product Addons) for WooCommerce (`advanced-product-fields-for-woocommerce`), https://wordpress.org/plugins/advanced-product-fields-for-woocommerce/
- **Affected versions:** all versions before 1.7.5
- **Fixed in:** 1.7.5 (Update to 1.7.5 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-80
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-26)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/advanced-product-fields-for-woocommerce
- **Fix released:** 2026-11-25
- **Published:** 2026-11-26
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3964/

## Description

The Advanced Product Fields (Product Addons) for WooCommerce plugin for WordPress is vulnerable to HTML Injection via customer-entered text and textarea product field values in all versions up to, and including, 1.7.4, due to the values being cleaned only with sanitize_text_field()/sanitize_textarea_field(), which keep a '<' followed by whitespace (such as '< a href=...>'). WooCommerce later passes the stored cart and order item meta through wp_kses_post(), which turns that text into a real HTML element limited to the tags and attributes wp_kses_post() allows. This makes it possible for unauthenticated attackers to inject arbitrary HTML, such as links, images and forms, into order item meta shown to administrators and shop managers on the order screen and in order emails.

## References

- https://wpsec.com/vuln/WPSEC-2026-3964/
- https://plugins.svn.wordpress.org/advanced-product-fields-for-woocommerce/tags/1.7.5/
- https://wordpress.org/plugins/advanced-product-fields-for-woocommerce/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3964/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
