CVE-2020-12827 MJML vulnerable to path traversal

High 7.2 Published Updated

An attacker can read arbitrary files via path traversal in the mj-include directive of the MJML email library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-12827?

CVE-2020-12827 is a high-severity path traversal vulnerability in n/a, published on 17 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

MJML prior to 4.6.3 contains a path traversal vulnerability when processing the mj-include directive within an MJML document.

Weakness: CWE-22

Which versions are affected by CVE-2020-12827?

2 open source packages ship an affected version, including mjml. It affects 1 product.

PackageAffectedFixed in
mjml npmAll versions4.6.3
mjml npmAll versions4.6.3

Products include Mjml Mjml.

How do I fix CVE-2020-12827?

Upgrade mjml to 4.6.3 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2020-12827 being exploited?

There is no known exploitation of CVE-2020-12827 in the wild and no public exploit code.

Sources

Also known as GHSA-4hch-r9xf-6vfr.

Is CVE-2020-12827 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free