CVE-2021-27911: XSS vulnerability on contacts view
8.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.56975%
CWE
Published
9/1/2021
Updated
2/7/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| mautic/core | composer | < 3.3.4 | 3.3.4 |
| mautic/core | composer | >= 4.0.0-alpha1, < 4.0.0 | 4.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unescaped contact names being rendered in JavaScript contexts. Key indicators:
- The attack triggers via hover interaction with campaign buttons, suggesting inline JS event handlers
- First/last names are user-controlled inputs from multiple sources
- XSS occurs despite standard HTML escaping because the payload exists in JS context
- The patch versions (3.3.4/4.0.0) likely added JS-specific escaping in template rendering
While exact code isn't available, Mautic's architecture suggests:
- DynamicContentExtension handles content rendering
- LeadController's view action prepares contact data These components would be responsible for properly escaping outputs in different contexts. The high confidence for DynamicContentExtension comes from its direct role in content rendering, while the controller gets medium confidence as the data source.