{"id":"CVE-2024-26151","aliases":["CVE-2024-26151","GHSA-578p-fxmm-6229","PYSEC-2026-1631"],"related":[],"kind":"vulnerability","state":"published","title":"Potentially untrusted input is rendered as HTML in final output","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 `&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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAll users of 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.\n\nThe 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.\n\n### Patches\n\nThe problem has been fixed in version 0.11.0 of this library. Versions before 0.10.0 are not affected by this security issue which was added as part of commit 84c495da20a91640a1ca551ace17df7f3be644aa.\n\n\n### Workarounds\n\n- Ensure that potentially untrusted user input does not contain any sequences which could be rendered as HTML. \n\n\n### References\n\n- Initial issue report by @sh-at-cs in #52","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete PyPI `mjml`, que se encuentra en el repositorio de GitHub `FelixSchwarz/mjml-python`, es una versión Python no oficial de MJML, un lenguaje de marcado creado por Mailjet. Todos los usuarios de `FelixSchwarz/mjml-python` que insertan datos que no son de confianza en plantillas mjml a menos que esos datos se verifiquen de manera muy estricta. La entrada del usuario como `&lt;script&gt;` se representaría como `","source":"nvd"}],"published":"2024-02-22T18:37:00.244Z","modified":"2026-09-10T03:50:09.830Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L","score":8.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L","score":8.2,"rating":"HIGH"}],"cwes":["CWE-20","CWE-79"],"affected":[{"ranges":[{"version":"= 0.10.0","status":"affected"}],"vendor":"FelixSchwarz","product":"mjml-python","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.11.0","status":"affected"}],"vendor":"felixschwarz","product":"mjml-python","cpe":"cpe:2.3:a:felixschwarz:mjml-python:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.10.0","status":"affected","fixed":"0.11.0"}],"ecosystem":"PyPI","package":"mjml","purl":"pkg:pypi/mjml","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.10.0"}],"vendor":"felixschwarz","product":"mjml-python","cpe":"cpe:2.3:a:felixschwarz:mjml-python:0.10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0.10.0","status":"affected","fixed":"0.11.0"}],"ecosystem":"PyPI","package":"mjml","purl":"pkg:pypi/mjml","source":"pysec"}],"references":[{"url":"https://github.com/FelixSchwarz/mjml-python/security/advisories/GHSA-578p-fxmm-6229","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/FelixSchwarz/mjml-python/issues/52","tags":["exploit","issue-tracking","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/FelixSchwarz/mjml-python/commit/84c495da20a91640a1ca551ace17df7f3be644aa","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/FelixSchwarz/mjml-python/commit/8d410b7a500703080bb14ed7e3d2663fe16767e6","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/FelixSchwarz/mjml-python/releases/tag/v0.11.0","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2024-26151-mjml-python-vulnerability-1","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26151","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/FelixSchwarz/mjml-python","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/mjml","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-578p-fxmm-6229","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-02-22T20:16:11.731Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-26151","url":"https://www.cve.org/CVERecord?id=CVE-2024-26151","licence":"CVE Terms of Use","modified":"2024-08-22T18:00:29.440Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-578p-fxmm-6229","url":"https://github.com/advisories/GHSA-578p-fxmm-6229","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:09.830Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-26151","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26151","licence":"Public domain","modified":"2026-06-17T07:17:12.420Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1631","url":"https://osv.dev/vulnerability/PYSEC-2026-1631","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:43.436Z"}],"updatedAt":"2026-11-25T22:58:37.012Z","epss":{"score":0.00621,"percentile":0.51106,"date":"2026-12-01T12:00:22.000Z"}}