CVE-2026-16597

GTM4WP <= 1.22.3 - Unauthenticated Stored Cross-Site Scripting via WooCommerce Billing Fields

Published Jul 29, 2026 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
Description
The GTM4WP – A Google Tag Manager (GTM) plugin for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via WooCommerce Billing Fields in all versions up to, and including, 1.22.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires the GTM4WP WooCommerce order data integration option (GTM4WP_OPTION_INTEGRATE_WCORDERDATA) to be enabled, and is exploited by placing a guest checkout order with a JavaScript payload in a WooCommerce billing field such as the billing first name.

Analysis

AI-generated

Technical impact

The GTM4WP – A Google Tag Manager plugin for WordPress contains a flaw that allows an attacker to store malicious JavaScript in WooCommerce billing fields when the WooCommerce order data integration option is enabled. The plugin fails to properly sanitize or escape user input, so a payload injected into a billing field such as the first name is later rendered as part of a page viewed by any user. If executed, the script runs with the privileges of the viewer’s browser; based on the description, it is inferred that this could allow session hijacking, phishing, or data theft.

Affected Systems

This weakness affects all installations of the GTM4WP plugin version 1.22.3 or older that have the WooCommerce integration feature turned on. The vulnerability exists in the plugin’s handling of billing fields within the WooCommerce checkout flow.

Risk and Exploitability

With a CVSS score of 7.2, the vulnerability is classified as high severity. The EPSS score of less than 1% indicates a very low probability of exploitation currently, and the flaw is not listed in the CISA KEV catalog. An attacker does not need authentication to trigger the bug; they can create a guest checkout order with malicious content in a billing field. The injected script will execute when any user accesses a page that renders the stored order data, making the issue potentially visible to many visitors if the attacker targets high‑traffic sites.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the GTM4WP plugin to version 1.22.4 or later, where the input sanitization bug is fixed.
  • If an upgrade is temporarily impossible, disable the "WooCommerce order data integration" option within the plugin settings to prevent billing fields from being stored and displayed.
  • Ensure that any remaining user‑supplied fields are properly escaped or filtered by the website’s content sanitization mechanisms, and consider implementing a web application firewall rule to block unexpected script tags in checkout inputs.

Generated by OpenCVE AI on August 4, 2026 at 12:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Duracelltomi
Duracelltomi gtm4wp – A Google Tag Manager (gtm) Plugin For Wordpress
Wordpress
Wordpress wordpress
Vendors & Products Duracelltomi
Duracelltomi gtm4wp – A Google Tag Manager (gtm) Plugin For Wordpress
Wordpress
Wordpress wordpress
Type Values Removed Values Added
Description The GTM4WP – A Google Tag Manager (GTM) plugin for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via WooCommerce Billing Fields in all versions up to, and including, 1.22.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires the GTM4WP WooCommerce order data integration option (GTM4WP_OPTION_INTEGRATE_WCORDERDATA) to be enabled, and is exploited by placing a guest checkout order with a JavaScript payload in a WooCommerce billing field such as the billing first name.
Title GTM4WP <= 1.22.3 - Unauthenticated Stored Cross-Site Scripting via WooCommerce Billing Fields
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Jul 29, 2026, 3:22 PM
Reserved
Jul 22, 2026, 1:53 PM
Status
Deferred
Published
Jul 29, 2026, 11:16 AM
Modified
Jul 30, 2026, 2:01 PM