CVE-2025-67898 MJML allows mj-include directory traversal due to an incomplete fix for CVE-2020-12827
An attacker can exploit directory traversal in MJML to read arbitrary files from the server, potentially exposing sensitive information.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-67898?
CVE-2025-67898 is a medium-severity path traversal vulnerability in MJML, published on 14 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
MJML through 4.18.0 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.
Weakness: CWE-36
Which versions are affected by CVE-2025-67898?
2 open source packages ship an affected version, including mjml.
| Package | Affected | Fixed in |
|---|---|---|
mjml npm | All versions | 5.0.0-alpha.9 |
mjml npm | All versions | 5.0.0-alpha.9 |
How do I fix CVE-2025-67898?
Upgrade mjml to 5.0.0-alpha.9 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-67898 being exploited?
There is no known exploitation of CVE-2025-67898 in the wild and no public exploit code.
Sources
Also known as CLEANSTART-2026-GC01544, GHSA-45h5-66jx-r2wf.