Vulnerabilities in pkg:npm/mjml
PACKAGECVE-2025-67898 is a MODERATE (CVSS 4.5) path traversal vulnerability (CWE-36: Absolute Path Traversal) affecting Mjml libraries in the npm ecosystem. The issue involves mjml allows mj-include directory traversal due to an incomplete fix for cve-2020-12827. Remediation is available by upgrading affected packages to version 5.0.0-alpha.9.
pkg:npm/mjml
Vulnerability advisories affecting package pkg:npm/mjml. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-45h5-66jx-r2wf | CVE-2025-67898 | MODERATE | MJML allows mj-include directory traversal due to an incomplete fix for CVE-2020-12827 |
| GHSA-4hch-r9xf-6vfr | CVE-2020-12827 | HIGH | MJML vulnerable to path traversal |
CVE-2025-67898 at a Glance
Security Impact
CVSS: 4.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:L).
How to Fix CVE-2025-67898
To remediate this vulnerability, upgrade all affected Mjml dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install mjml@5.0.0-alpha.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls mjml
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-67898, inspect your project dependencies using npm:
npm ls mjml
Analyze the terminal output to locate any version of Mjml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.0-alpha.9), your application is affected.
Note: The npm ls mjml command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-36: Absolute Path Traversal, where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as "/abs/path" that can resolve to a location that is outside of that directory. In Mjml, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-67898 Affected Mjml Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mjml
|
npm |
< 5.0.0-alpha.9
|
5.0.0-alpha.9
|
References
Frequently Asked Questions
What is CVE-2025-67898?
Which Mjml versions are affected?
What version fixes CVE-2025-67898?
Is mjml affected?
What is the CVSS score of CVE-2025-67898?
What CWE is associated with CVE-2025-67898?
How can I check npm dependencies for CVE-2025-67898?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-45h5-66jx-r2wf",
"modified" : "2026-06-26T20:28:42Z",
"published" : "2025-12-15T00:30:25Z",
"aliases" : [ "CVE-2025-67898" ],
"summary" : "MJML allows mj-include directory traversal due to an incomplete fix for CVE-2020-12827",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "mjml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.0.0-alpha.9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-12827"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67898"
}, {
"type" : "WEB",
"url" : "https://github.com/mjmlio/mjml/issues/3018"
}, {
"type" : "WEB",
"url" : "https://github.com/mjmlio/mjml/pull/3033"
}, {
"type" : "WEB",
"url" : "https://github.com/mjmlio/mjml/commit/517b376b068e71c713ec4bb4ef9e5b0b7235b8ce"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mjmlio/mjml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-36" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-17T18:12:02Z",
"nvd_published_at" : "2025-12-14T22:15:36Z"
}
}