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