# CVE-2024-26151: Potentially untrusted input is rendered as HTML in final output

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L`
- 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.62%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-02-22T18:37:00.244Z
- Modified: 2026-09-10T03:50:09.830Z
- Also known as: GHSA-578p-fxmm-6229, PYSEC-2026-1631
- Weaknesses: CWE-20, CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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 `&lt;script&gt;` 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.

(As written by CVE List.)

## Affected

- FelixSchwarz mjml-python: = 0.10.0; before 0.11.0; 0.10.0
- mjml (PyPI): from 0.10.0 before 0.11.0

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L`

## References

- <https://github.com/FelixSchwarz/mjml-python/issues/52> (exploit, issue-tracking, web)
- <https://www.vicarius.io/vsociety/posts/cve-2024-26151-mjml-python-vulnerability-1> (exploit, third-party-advisory)
- <https://github.com/FelixSchwarz/mjml-python/security/advisories/GHSA-578p-fxmm-6229> (vendor-advisory, web)
- <https://github.com/FelixSchwarz/mjml-python/commit/84c495da20a91640a1ca551ace17df7f3be644aa> (patch, web)
- <https://github.com/FelixSchwarz/mjml-python/commit/8d410b7a500703080bb14ed7e3d2663fe16767e6> (patch, web)
- <https://github.com/FelixSchwarz/mjml-python/releases/tag/v0.11.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-26151> (advisory)
- <https://github.com/FelixSchwarz/mjml-python> (package)
- <https://pypi.org/project/mjml> (package)
- <https://github.com/advisories/GHSA-578p-fxmm-6229> (advisory)

## Sources

- CVE List: [CVE-2024-26151](https://www.cve.org/CVERecord?id=CVE-2024-26151), CVE Terms of Use, modified 2024-08-22
- GitHub Advisory Database: [GHSA-578p-fxmm-6229](https://github.com/advisories/GHSA-578p-fxmm-6229), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-26151](https://nvd.nist.gov/vuln/detail/CVE-2024-26151), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1631](https://osv.dev/vulnerability/PYSEC-2026-1631), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-26151 · Whole record: https://cve.day/CVE-2024-26151.json · Rebuilt by cve.day 2026-11-25T22:58:37.012Z
