CVE-2022-1707 MEDIUM

CVE-2022-1707: Google Tag Manager for WordPress <= 1.15 - Reflected Cross-Site Scripting via Site Search

Vendor Duracelltomi
Product GTM4WP – A Google Tag Manager (GTM) plugin for WordPress
Weakness CWE-79 · XSS
Published June 13, 2022
Last update April 8, 2026

CVSS base score

6.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

The Google Tag Manager for WordPress plugin for WordPress is vulnerable to reflected Cross-Site Scripting via the s parameter due to the site search populating into the data layer of sites with insufficient sanitization in versions up to an including 1.15. The affected file is ~/public/frontend.php and this could be exploited by unauthenticated attackers.

Explanation of Vulnerability in Simple Terms

02Summary

The GTM4WP plugin for WordPress contains a cross-site scripting (XSS) vulnerability in versions 1.15 and earlier. An attacker can inject malicious JavaScript that executes in the browsers of site visitors. The vulnerability requires user interaction—typically clicking a malicious link—and can affect other users and the site itself. Update to a version newer than 1.15 to resolve this issue.

What an attacker can do

03Attacker Capabilities

Inject malicious JavaScript that runs in visitors' browsers, stealing cookies, session tokens, or performing actions on their behalf.

Potential impact on your site

04Site Impact

Visitors' accounts and data are at risk; attackers can steal credentials, deface content, or redirect users to phishing sites.

Conditions required to exploit

05Prerequisites

No authentication required. Attacker must trick a user into clicking a malicious link or visiting a compromised page.

Key dates

06Disclosure timeline

June 13, 2022 CVE published
April 8, 2026 Record updated

Related vulnerabilities

08Related CVE