Description
MJML before 5.0.0-alpha.9 allows mj-include directory traversal to test file existence and (in the type=”css” case) read files. NOTE: this issue exists because of an incomplete fix for CVE-2020-12827.
Recommendation
Update the mjml package to the latest compatible version. Followings are version details:
- Affected version(s): < 5.0.0-alpha.9
- Patched version(s): 5.0.0-alpha.9
References
Could your website be exposed too?
SmartScanner can check your website for MJML allows mj-include directory traversal due to an incomplete fix for CVE-2020-12827 and gives you actionable findings to investigate.
Start a free scanRelated Issues
- datatables.net vulnerable to Prototype Pollution due to incomplete fix - CVE-2020-28458
- MJML vulnerable to path traversal - CVE-2020-12827
- SillyTavern has a path traversal in `/api/chats/import` allows arbitrary file write outside intended chat directory - CVE-2026-34522
- IPX Allows Path Traversal via Prefix Matching Bypass - CVE-2025-54387


