CVE-2024-26151
Mailjet MJML Python Cross-Site Scripting (XSS)
Description
The `mjml` PyPI package, found at the `FelixSchwarz/mjml-python` GitHub repo, is an unofficial Python port of MJML, a markup language created by Mailjet. All users of `FelixSchwarz/mjml-python` who insert untrusted data into mjml templates unless that data is checked in a very strict manner. User input like `<script>` would be rendered as `<script>` in the final HTML output. The attacker must be able to control some data which is later injected in an mjml template which is then send out as email to other users. The attacker could control contents of email messages sent through the platform. The problem has been fixed in version 0.11.0 of this library. Versions before 0.10.0 are not affected by this security issue. As a workaround, ensure that potentially untrusted user input does not contain any sequences which could be rendered as HTML.
INFO
Published Date :
Feb. 22, 2024, 7:15 p.m.
Last Modified :
Feb. 5, 2025, 9:52 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.3
Exploitability Score :
2.3
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-26151
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-26151
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-26151
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Feb. 05, 2025
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Added CWE NIST CWE-79 Added CPE Configuration OR *cpe:2.3:a:felixschwarz:mjml-python:0.10.0:*:*:*:*:*:*:* Changed Reference Type https://github.com/FelixSchwarz/mjml-python/commit/84c495da20a91640a1ca551ace17df7f3be644aa No Types Assigned https://github.com/FelixSchwarz/mjml-python/commit/84c495da20a91640a1ca551ace17df7f3be644aa Patch Changed Reference Type https://github.com/FelixSchwarz/mjml-python/commit/84c495da20a91640a1ca551ace17df7f3be644aa No Types Assigned https://github.com/FelixSchwarz/mjml-python/commit/84c495da20a91640a1ca551ace17df7f3be644aa Patch Changed Reference Type https://github.com/FelixSchwarz/mjml-python/commit/8d410b7a500703080bb14ed7e3d2663fe16767e6 No Types Assigned https://github.com/FelixSchwarz/mjml-python/commit/8d410b7a500703080bb14ed7e3d2663fe16767e6 Patch Changed Reference Type https://github.com/FelixSchwarz/mjml-python/commit/8d410b7a500703080bb14ed7e3d2663fe16767e6 No Types Assigned https://github.com/FelixSchwarz/mjml-python/commit/8d410b7a500703080bb14ed7e3d2663fe16767e6 Patch Changed Reference Type https://github.com/FelixSchwarz/mjml-python/issues/52 No Types Assigned https://github.com/FelixSchwarz/mjml-python/issues/52 Exploit, Issue Tracking Changed Reference Type https://github.com/FelixSchwarz/mjml-python/issues/52 No Types Assigned https://github.com/FelixSchwarz/mjml-python/issues/52 Exploit, Issue Tracking Changed Reference Type https://github.com/FelixSchwarz/mjml-python/releases/tag/v0.11.0 No Types Assigned https://github.com/FelixSchwarz/mjml-python/releases/tag/v0.11.0 Release Notes Changed Reference Type https://github.com/FelixSchwarz/mjml-python/releases/tag/v0.11.0 No Types Assigned https://github.com/FelixSchwarz/mjml-python/releases/tag/v0.11.0 Release Notes Changed Reference Type https://github.com/FelixSchwarz/mjml-python/security/advisories/GHSA-578p-fxmm-6229 No Types Assigned https://github.com/FelixSchwarz/mjml-python/security/advisories/GHSA-578p-fxmm-6229 Vendor Advisory Changed Reference Type https://github.com/FelixSchwarz/mjml-python/security/advisories/GHSA-578p-fxmm-6229 No Types Assigned https://github.com/FelixSchwarz/mjml-python/security/advisories/GHSA-578p-fxmm-6229 Vendor Advisory Changed Reference Type https://www.vicarius.io/vsociety/posts/cve-2024-26151-mjml-python-vulnerability-1 No Types Assigned https://www.vicarius.io/vsociety/posts/cve-2024-26151-mjml-python-vulnerability-1 Exploit, Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/FelixSchwarz/mjml-python/commit/84c495da20a91640a1ca551ace17df7f3be644aa Added Reference https://github.com/FelixSchwarz/mjml-python/commit/8d410b7a500703080bb14ed7e3d2663fe16767e6 Added Reference https://github.com/FelixSchwarz/mjml-python/issues/52 Added Reference https://github.com/FelixSchwarz/mjml-python/releases/tag/v0.11.0 Added Reference https://github.com/FelixSchwarz/mjml-python/security/advisories/GHSA-578p-fxmm-6229 Added Reference https://www.vicarius.io/vsociety/posts/cve-2024-26151-mjml-python-vulnerability-1 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Received by [email protected]
Feb. 22, 2024
Action Type Old Value New Value Added Description The `mjml` PyPI package, found at the `FelixSchwarz/mjml-python` GitHub repo, is an unofficial Python port of MJML, a markup language created by Mailjet. All users of `FelixSchwarz/mjml-python` who insert untrusted data into mjml templates unless that data is checked in a very strict manner. User input like `<script>` would be rendered as `<script>` in the final HTML output. The attacker must be able to control some data which is later injected in an mjml template which is then send out as email to other users. The attacker could control contents of email messages sent through the platform. The problem has been fixed in version 0.11.0 of this library. Versions before 0.10.0 are not affected by this security issue. As a workaround, ensure that potentially untrusted user input does not contain any sequences which could be rendered as HTML. Added Reference GitHub, Inc. https://github.com/FelixSchwarz/mjml-python/security/advisories/GHSA-578p-fxmm-6229 [No types assigned] Added Reference GitHub, Inc. https://github.com/FelixSchwarz/mjml-python/issues/52 [No types assigned] Added Reference GitHub, Inc. https://github.com/FelixSchwarz/mjml-python/commit/84c495da20a91640a1ca551ace17df7f3be644aa [No types assigned] Added Reference GitHub, Inc. https://github.com/FelixSchwarz/mjml-python/commit/8d410b7a500703080bb14ed7e3d2663fe16767e6 [No types assigned] Added Reference GitHub, Inc. https://github.com/FelixSchwarz/mjml-python/releases/tag/v0.11.0 [No types assigned] Added CWE GitHub, Inc. CWE-20 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-26151
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-26151
weaknesses.