CVE-2022-1961 MEDIUM

CVE-2022-1961: Google Tag Manager for WordPress (GTM4WP) <= 1.15.1 - Stored Cross-Site Scripting via Content Element ID

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

5.5/10
Attack vector Network
Attack complexity Low
Privileges required High
User interaction None
Confidentiality Low
Integrity Low

CVSS vector

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

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

GTM4WP versions up to 1.15.1 contain a stored cross-site scripting (XSS) vulnerability in the plugin's settings. An authenticated administrator can inject malicious JavaScript that executes in the browsers of other site users, including other administrators. The vulnerability affects the plugin's configuration interface and can impact site security and user data.

What an attacker can do

03Attacker Capabilities

Inject malicious JavaScript that runs in other users' browsers when they view affected plugin settings.

Potential impact on your site

04Site Impact

An admin account compromise could inject malicious code affecting all site users and administrators.

Conditions required to exploit

05Prerequisites

Attacker must have administrator-level access to the WordPress site.

Key dates

06Disclosure timeline

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

Related vulnerabilities

08Related CVE