CVE-2024-26151
Last modified
CVE-2024-26151 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. 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. EPSS estimates a 0.62% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Felixschwarz | Mjml-Python | 0.10.0 |
References
- https://github.com/FelixSchwarz/mjml-python/issues/52Exploit, Issue Tracking
- https://github.com/FelixSchwarz/mjml-python/issues/52Exploit, Issue Tracking
- https://www.vicarius.io/vsociety/posts/cve-2024-26151-mjml-python-vulnerability-1Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-26151?
How severe is CVE-2024-26151?
How do I fix CVE-2024-26151?
Are you affected by CVE-2024-26151?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
