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.
Published: 2026-07-29
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Wed, 29 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 29 Jul 2026 15:30:00 +0000

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

Wed, 29 Jul 2026 10:30:00 +0000

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'}


Subscriptions

Duracelltomi Gtm4wp – A Google Tag Manager (gtm) Plugin For Wordpress
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-29T15:22:35.098Z

Reserved: 2026-07-22T13:53:12.572Z

Link: CVE-2026-16597

cve-icon Vulnrichment

Updated: 2026-07-29T15:19:00.731Z

cve-icon NVD

Status : Deferred

Published: 2026-07-29T11:16:48.330

Modified: 2026-07-30T14:01:30.413

Link: CVE-2026-16597

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T12:45:05Z

Weaknesses
  • CWE-79

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