CVE-2022-1961 Google Tag Manager for WordPress (GTM4WP) <= 1.15.1 - Stored Cross-Site Scripting via Content Element ID
Administrators can inject arbitrary scripts via the scroller-contentid parameter in the GTM4WP WordPress plugin when unfiltered_html is disabled.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-1961?
CVE-2022-1961 is a medium-severity cross-site scripting vulnerability in duracelltomi GTM4WP – A Google Tag Manager (GTM) plugin for WordPress, published on 13 Jun 2022. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2022-1961?
It affects 1 product.
Products include Gtm4wp Google Tag Manager.
How do I fix CVE-2022-1961?
No fix has been published for CVE-2022-1961 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-1961 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-1961 exists.
Other vulnerabilities in duracelltomi GTM4WP – A Google Tag Manager (GTM) plugin for WordPress
Sources
Also known as GHSA-3jmc-pgpg-8r5g.