Potentially untrusted input is rendered as HTML in final output
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| FelixSchwarz | mjml-python | = 0.10.0 | — | No fix listed | CNA |
| — | mjml (PyPI) | 0.10.0 to before 0.11.0 | 0.11.0 | Patch available | GHSA-578p-fxmm-6229 |
- mjml-python VendorFelixSchwarz Affected = 0.10.0 Fixed in — No fix listed CNA
- mjml (PyPI) Vendor— Affected 0.10.0 to before 0.11.0 Fixed in 0.11.0 Patch available GHSA-578p-fxmm-6229
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:felixschwarz:mjml-python:0.10.0:*:*:*:*:*:*:* | 0.10.0 | Vulnerable | FelixSchwarz |
- cpe:2.3:a:felixschwarz:mjml-python:0.10.0:*:*:*:*:*:*:* Versions 0.10.0 Vulnerable ·FelixSchwarz
Remediation
- Fix · GHSA-578p-fxmm-6229 mjml (PyPI) Fixed in 0.11.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-26151
- 2026-10-03 Alias added: GHSA-578p-fxmm-6229
- 2026-11-07 EPSS moved to the 50th–90th percentile
References
Exploit 2
Patch 2
Advisory 2
Sources
- CVE-2024-26151 · CVE Program
- CVE-2024-26151 · NVD
- FIRST EPSS
- GHSA-578p-fxmm-6229 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences