SecurityContext

CVE-2021-27910: Mautic - Stored XSS

  • Cve: CVE-2021-27910
  • Name: Mautic - Stored XSS
  • Description: Insufficient sanitization / filtering allows for arbitrary JavaScript Injection in Mautic using the bounce management callback function. The values submitted in the "error" and "error_related_to" parameters of the POST request of the bounce management callback will be permanently stored and executed once the details page of an affected lead is opened by a Mautic user. An attacker with access to the bounce management callback function (identified with the Mailjet webhook, but it is assumed this will work uniformly across all kinds of webhooks) can inject arbitrary JavaScript Code into the "error" and "error_related_to" parameters of the POST request (POST /mailer/<product / webhook>/callback). It is noted that there is no authentication needed to access this function. The JavaScript Code is stored permanently in the web application and executed every time an authenticated user views the details page of a single contact / lead in Mautic. This means, arbitrary code can be executed to, e.g., steal or tamper with information.
  • Impact: Attackers can execute arbitrary JavaScript in authenticated user sessions, potentially stealing or tampering with sensitive information.
  • Remediation: Implement proper input sanitization and validation for 'error' and 'error_related_to' parameters in the bounce callback.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: logged_in
  • Requirements: Attacker needs access to the bounce management callback function
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00699
  • Epss percentile: 0.53873
  • Assignee: [email protected]
  • Published at: 2021-08-30T16:15:07Z
  • Age in days: 1912
  • Modified at: 2026-06-17T03:45:36Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-27910
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://github.com/mautic/mautic/security/advisories/GHSA-86pv-95mj-7w5fnvdPatch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
acquia:mautic= 4.0.0 alpha1, = 4.0.0 beta, = 4.0.0 rc, < 3.3.4nonvd/v1/products/acquia/mautic

Projects

RepositoryLink kindsIndexedUrl
mautic/mauticcommit, package, security_advisoryyes/v1/repositories/mautic/mautic

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 3694
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports