CVE-2022-1707 Google Tag Manager for WordPress <= 1.15 - Reflected Cross-Site Scripting via Site Search

Medium 6.1 Published Updated

Unauthenticated attackers can execute arbitrary scripts via reflected XSS in the site search parameter of the Google Tag Manager for WordPress plugin.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-1707?

CVE-2022-1707 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 can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79

Which versions are affected by CVE-2022-1707?

It affects 1 product.

Products include Gtm4wp Google Tag Manager.

How do I fix CVE-2022-1707?

No fix has been published for CVE-2022-1707 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-1707 being exploited?

There is no known exploitation of CVE-2022-1707 in the wild and no public exploit code.

Sources

Also known as GHSA-3f78-pw9p-j3pc.

Is CVE-2022-1707 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free