Medium severity · published Jun 13, 2022
CVE-2022-1961
Google Tag Manager for WordPress (GTM4WP) <= 1.15.1 - Stored Cross-Site Scripting via Content Element ID
4.8
CVSS
1.1%
EPSS
No
On KEV
Description
The Google Tag Manager for WordPress (GTM4WP) plugin is vulnerable to Stored Cross-Site Scripting due to insufficient escaping via the `gtm4wp-options[scroller-contentid]` parameter found in the `~/public/frontend.php` file which allowed attackers with administrative user access to inject arbitrary web scripts, in versions up to and including 1.15.1. This affects multi-site installations where unfiltered_html is disabled for administrators, and sites where unfiltered_html is disabled.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
High
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)1.1% · higher than 66% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GA
GTM4WP – A Google Tag Manager (GTM) plugin for WordPress · duracelltomi
through 1.15.1 · source: vendor
GT
Google Tag Manager · Gtm4wp
before 1.15.2 · source: NVD
Affected product
GA
GTM4WP – A Google Tag Manager (GTM) plugin for WordPress
duracelltomi
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-1961
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-1961
Exploit
https://gist.github.com/Xib3rR4dAr/02a21cd0ea0b7bf586131c5eebb69f1d
Patch
https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=2732977%40duracelltomi-google-tag-manager&new=2732977%40duracelltomi-google-tag-manager&sfp_email=&sfph_mail=
Product
https://wordpress.org/plugins/duracelltomi-google-tag-manager/#developers
Third Party Advisory
https://www.wordfence.com/threat-intel/vulnerabilities/id/202c14d0-9207-47cb-9410-ca4c70d7b6d2?source=cve
Third Party Advisory
https://www.wordfence.com/vulnerability-advisories/#CVE-2022-1961
More from GTM4WP – A Google Tag Manager (GTM) plugin for WordPress
7.2
CVE-2026-16597
GTM4WP <= 1.22.3 - Unauthenticated Stored Cross-Site Scripting via WooCommerce Billing Fields
6.1
CVE-2022-1707
Google Tag Manager for WordPress <= 1.15 - Reflected Cross-Site Scripting via Site Search
