MonsterInsights <= 8.9.0 - Unauthenticated Stored Cross-Site Scripting via Google Analytics
Strategic Overview
- Status
- Patched in 8.9.1
- Affected Version
<= 8.9.0- CVSS
- 5.4Medium
- Weakness type
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CVE
CVE-2022-3904
At a glance
CVE-2022-3904 is a medium-severity Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in the MonsterInsights WordPress plugin, affecting versions <= 8.9.0. It carries a CVSS score of 5.4 (reachable over the network). Exploitation requires no authentication. The issue is fixed in version 8.9.1; sites on affected versions should update now. Disclosed December 2022, reported by Grzegorz Niedziela.
Vulnerability Overview
The MonsterInsights plugin for WordPress is vulnerable to Stored Cross-Site Scripting via post titles and pages in versions up to, and including, 8.9.0 due to insufficient input sanitization and output escaping on those values. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page if they are able to successfully spoof a request to Google Analytics.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, and no privileges on the target site, and no interaction from a victim user.
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Reaching this weakness in MonsterInsights <= 8.9.0 takes no account at all. Cross-site scripting happens when input from a request is written into a page without being escaped for the context it lands in, so the browser parses attacker-supplied text as markup or script.
Injected script runs with the privileges of whoever views the affected page, which is how these flaws turn into administrator session theft, silent account creation or persistent backdoors in page content. For MonsterInsights the fix is 8.9.1: builds <= 8.9.0 are affected, anything from 8.9.1 onward is not.
Remediation
Update to version 8.9.1, or a newer patched version
How does WordSec protect against this?
Requests carrying this pattern arrive without a session, so nothing upstream of the firewall gets a chance to reject them: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: MonsterInsights 8.9.1 closes this, and updating the plugin is the step that ends it.
- Firewall
- Login Security
- Alerts
External References
Related records
Same weakness class
- 7.2MonsterInsights – Google Analytics Dashboard for WordPress XSS
- 7.2MonsterInsights – Google Analytics Dashboard for WordPress Stored XSS
- 6.4CVE-2023-23999: Google Analytics by Monster Insights Stored XSS
CVE-2023-23999 - 6.4CVE-2023-0081: MonsterInsights <= 8.12.0 Stored Cross-Site Scripting
CVE-2023-0081
Other vulnerabilities in MonsterInsights – Google Analytics Dashboard for WordPress (Website Stats Made Easy)
- 7.1CVE-2026-5371: MonsterInsights Authenticated (Subscriber+) Info
CVE-2026-5371 - 6.4MonsterInsights – Google Analytics Dashboard for WordPress Stored XSS
- 5.5MonsterInsights – Google Analytics Dashboard for WordPress Stored XSS
- 5.3CVE-2026-11366: MonsterInsights <= 11.0.0 Missing Authorization
CVE-2026-11366 - 4.3CVE-2023-52220: Google Analytics… Missing Authorization
CVE-2023-52220 - 3.8MonsterInsights - Google Analytics Dashboard for WordPress Stored XSS
- 3.5CVE-2014-9174: MonsterInsights XSS
CVE-2014-9174
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C