WordPress Plugin Vulnerabilities
GTM4WP < 1.22.4 - Unauthenticated Stored XSS via WooCommerce Billing Fields
Description
The plugin does not properly escape WooCommerce billing field values before outputting them in an inline data layer script, allowing unauthenticated users to inject arbitrary JavaScript via a guest checkout order.
The values are escaped with esc_js(), but the whole script block was then passed through htmlspecialchars_decode() after wp_kses(), turning the escaped quotes back into raw characters and re-enabling a break-out of the JavaScript string. This requires the WooCommerce order data integration option to be enabled; the payload executes when the order-received page for that order is loaded.
Affects Plugins
References
Classification
Type
XSS
OWASP top 10
CWE
CVSS
Miscellaneous
Original Researcher
lhking
Verified
No
WPVDB ID
Timeline
Publicly Published
2026-07-28 (about 27 days ago)
Added
2026-07-28 (about 26 days ago)
Last Updated
2026-07-28 (about 26 days ago)