VDB
Sign up
MEDIUM4.5

GHSA-45h5-66jx-r2wf

MJML allows mj-include directory traversal due to an incomplete fix for CVE-2020-12827

Quick fix

GHSA-45h5-66jx-r2wf — mjml: upgrade to the fixed version with the command below.

npm install mjml@5.0.0-alpha.9

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/mjml
Introduced in: 0Fixed in: 5.0.0-alpha.9
Fixnpm install mjml@5.0.0-alpha.9

References