{"id":"CVE-2021-27910","published":"2021-08-30T15:55:08Z","modified":"2024-09-17T01:25:50Z","title":"Stored XSS vulnerability on Bounce Management Callback","vendor":"Mautic","product":"Mautic","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00699,"percentile":0.4863,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/mautic/mautic/security/advisories/GHSA-86pv-95mj-7w5f","tags":["x_refsource_MISC"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":9.73},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"mautic","affectedVersions":[{"vendor":"Mautic","product":"Mautic","versions":[">= unspecified, < 3.3.4",">= unspecified, < 4.0.0"]}],"affected":[{"ecosystem":"Packagist","package":"mautic/core","vulnerableRanges":["<3.3.4",">=4.0.0-alpha1, <4.0.0"],"patched":["3.3.4","4.0.0"],"from":["GHSA-86pv-95mj-7w5f"],"provenance":"source"}],"summary":{"text":"Mautic's bounce management callback endpoint (POST /mailer/<product/webhook>/callback, identified via the Mailjet webhook) fails to sanitize the \"error\" and \"error_related_to\" parameters, so submitted content is stored and later rendered as active JavaScript on a lead's details page. An unauthenticated attacker who can reach that callback can plant persistent script that executes in the browser of any Mautic user who opens the affected contact, which requires that user to view the page and can be used to steal or tamper with data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:05Z"},"euvd":{"id":"EUVD-2021-2013","exploited":false,"provenance":"source"}}