CVE-2020-7684 Directory Traversal

High 7.5 Published Updated

An attacker can read arbitrary files from the server due to lack of path sanitization in the rollup-plugin-serve 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-7684?

CVE-2020-7684 is a high-severity path traversal vulnerability in rollup-plugin-serve, published on 17 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

This affects all versions of package rollup-plugin-serve. There is no path sanitization in readFile operation.

Weakness: CWE-22

Which versions are affected by CVE-2020-7684?

2 open source packages ship an affected version, including rollup-plugin-serve. It affects 1 product.

PackageAffectedFixed in
rollup-plugin-serve npmAll versions1.0.2
rollup-plugin-serve npmAll versions1.0.2

Products include Rollup-Plugin-Serve Project Rollup-Plugin-Serve.

How do I fix CVE-2020-7684?

Upgrade rollup-plugin-serve to 1.0.2 or later.

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

Is CVE-2020-7684 being exploited?

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

Sources

Also known as GHSA-4j46-mp85-mv8c.

Is CVE-2020-7684 in your software?

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

Check your SBOMs for free