CVE-2022-1707
Published: 13 June 2022
Summary
CVE-2022-1707 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Gtm4Wp Google Tag Manager. Its CVSS base score is 6.1 (Medium).
Operationally, ranked in the top 5.9% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
The Google Tag Manager for WordPress plugin for WordPress contains a reflected cross-site scripting vulnerability (CWE-79) in versions up to and including 1.15. The flaw resides in the site search handling within public/frontend.php, where the 's' parameter value is written into the data layer without adequate sanitization, allowing script injection when the page renders search results.
Unauthenticated remote attackers can trigger the vulnerability by supplying a malicious payload in the 's' parameter of a crafted URL. Successful exploitation results in arbitrary JavaScript execution in the context of a victim user's browser, enabling theft of cookies or tokens, session hijacking, or other client-side actions, as reflected in the CVSS vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
The EPSS score for this CVE rose from a low baseline to a peak of 0.2156 (current value 0.1258), indicating increased exploitation interest after public disclosure. The referenced GitHub commits, issue tracker, and Wordfence advisories document the affected code paths and should be consulted for patch details.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-24991
Vulnerability details
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…
more
1.15. The affected file is ~/public/frontend.php and this could be exploited by unauthenticated attackers.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.