{"id":"CVE-2024-26151","published":"2024-02-22T18:37:00Z","modified":"2024-08-22T18:00:29Z","title":"Potentially untrusted input is rendered as HTML in final output","vendor":"FelixSchwarz","product":"mjml-python","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00621,"percentile":0.507,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/FelixSchwarz/mjml-python/security/advisories/GHSA-578p-fxmm-6229","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/FelixSchwarz/mjml-python/issues/52","tags":["x_refsource_MISC"]},{"url":"https://github.com/FelixSchwarz/mjml-python/commit/84c495da20a91640a1ca551ace17df7f3be644aa","tags":["x_refsource_MISC"]},{"url":"https://github.com/FelixSchwarz/mjml-python/commit/8d410b7a500703080bb14ed7e3d2663fe16767e6","tags":["x_refsource_MISC"]},{"url":"https://github.com/FelixSchwarz/mjml-python/releases/tag/v0.11.0","tags":["x_refsource_MISC"]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2024-26151-mjml-python-vulnerability-1","tags":[]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":10.14},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"felixschwarz","affectedVersions":[{"vendor":"FelixSchwarz","product":"mjml-python","versions":["= 0.10.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-22T20:16:11.731315Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mjml","vulnerableRanges":[">=0.10.0, <0.11.0"],"patched":["0.11.0"],"from":["GHSA-578p-fxmm-6229","PYSEC-2026-1631"],"provenance":"source"}],"summary":{"text":"The mjml-python package, an unofficial Python port of the MJML email markup language maintained in the FelixSchwarz/mjml-python repository, fails to properly validate untrusted data inserted into MJML templates, so input such as encoded HTML entities is rendered as live HTML in the final output. An attacker who can control data injected into a template that is later sent as email to other users, such as contents of messages sent through the platform, must be able to submit that input, and exploitation requires a user to interact with the resulting message.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:24:17Z"},"euvd":{"id":"EUVD-2024-0518","exploited":false,"provenance":"source"}}