Vulnerability record · CVE-2022-25772 · published 20 June 2022
CVE-2022-25772: Mautic web tracking component cross-site scripting
AAcquia · Mautic
Mautic before 4.3.0 contains a cross-site scripting flaw in its web tracking component that lets remote attackers inject executable JavaScript. Because the tracking component is exposed to unauthenticated visitors, the injected script runs in the browser context of anyone who views the affected page.
Description
A cross-site scripting (XSS) vulnerability in the web tracking component of Mautic before 4.3.0 allows remote attackers to inject executable javascript
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Automated analysis
medium priorityCVSS rates it medium at 6.1 with required user interaction, but the very high EPSS percentile warrants prompt patching.
What it is
Mautic before 4.3.0 contains a cross-site scripting flaw in its web tracking component that lets remote attackers inject executable JavaScript. Because the tracking component is exposed to unauthenticated visitors, the injected script runs in the browser context of anyone who views the affected page.
Impact
An attacker can execute arbitrary JavaScript in a victim's browser session, enabling session theft, credential phishing, or actions performed as the victim within Mautic.
Attack surface
Reachable over the network through the web tracking component; no authentication is required, but the CVSS vector indicates user interaction is needed for the payload to execute.
Exploitation
Not listed in CISA KEV and no public exploit references are tagged in the record, though EPSS is high at roughly 0.62 probability (99th percentile), suggesting elevated likelihood of attempted exploitation.
What to do
- Upgrade Mautic to 4.3.0 or later, which is the fixed version per the advisory.
- Apply the vendor security advisory GHSA-pjpc-87mp-4332 guidance if immediate upgrade is not possible.
- Enforce output encoding and input sanitization on the web tracking component and any user-supplied tracking parameters.
- Deploy a content security policy that restricts inline and third-party script execution on Mautic pages.
- Restrict or monitor public exposure of the tracking endpoint where operationally feasible.
Detection
- Inspect web server and application logs for suspicious script payloads or encoded JavaScript in tracking endpoint requests.
- Monitor for unexpected inline script or external script references appearing in rendered tracking pages.
- Review Mautic audit and access logs for anomalous activity following visits to tracking pages.
- Use WAF or IDS signatures targeting reflected XSS patterns against the tracking component.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2022-25772 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-25772), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.