# CVE-2021-27910: Stored XSS vulnerability on Bounce Management Callback

- Severity: High 8.2 (CVSS:3.1, scored by Mautic) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2021-08-30T15:55:08.436Z
- Modified: 2026-07-08T06:30:02.579Z
- Also known as: GHSA-86pv-95mj-7w5f
- Weaknesses: CWE-79
- Assigned by: Mautic

## 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.

(As written by CVE List.)

## Affected

- Mautic Mautic: from unspecified before 3.3.4; from unspecified before 4.0.0
- mautic/core (Packagist): before 3.3.4; from 4.0.0-alpha1 before 4.0.0
- acquia mautic: before 3.3.4; 4.0.0

## Every score

- Mautic: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/mautic/mautic/security/advisories/GHSA-86pv-95mj-7w5f> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27910> (advisory)
- <https://github.com/mautic/mautic/commit/e6a405975342f3cf86aa71927618d31d25135fa3> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/mautic/core/CVE-2021-27910.yaml> (web)
- <https://github.com/mautic/mautic> (package)

## Sources

- CVE List: [CVE-2021-27910](https://www.cve.org/CVERecord?id=CVE-2021-27910), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-86pv-95mj-7w5f](https://github.com/advisories/GHSA-86pv-95mj-7w5f), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-27910](https://nvd.nist.gov/vuln/detail/CVE-2021-27910), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-27910 · Whole record: https://cve.day/CVE-2021-27910.json · Rebuilt by cve.day 2026-11-25T22:58:03.545Z
