CVE-2024-26151

Potentially untrusted input is rendered as HTML in final output

Published Feb 22, 2024 CVSS 3.1 · 8.2 High EPSS < 1% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0518 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.
Github GHSA Github GHSA GHSA-578p-fxmm-6229 Potentially untrusted input is rendered as HTML in final output
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00605}

epss

{'score': 0.0082}

Type Values Removed Values Added
First Time appeared Felixschwarz
Felixschwarz mjml-python
Weaknesses CWE-79
CPEs cpe:2.3:a:felixschwarz:mjml-python:0.10.0:*:*:*:*:*:*:*
Vendors & Products Felixschwarz
Felixschwarz mjml-python
Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 22, 2024, 6:00 PM
Reserved
Feb 14, 2024, 5:40 PM
Status
Analyzed
Published
Feb 22, 2024, 7:15 PM
Modified
Jun 17, 2026, 7:17 AM