CVE-2019-5417 Directory Traversal in serve
Attackers can read arbitrary files on the remote server via path traversal in the serve npm package.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-5417?
CVE-2019-5417 is a high-severity path traversal vulnerability in serve, published on 17 Mar 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A path traversal vulnerability in serve npm package version 7.0.1 allows the attackers to read content of arbitrary files on the remote server.
Weakness: CWE-22
Which versions are affected by CVE-2019-5417?
2 open source packages ship an affected version, including serve. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
serve npm | All versions | 7.1.3 |
serve npm | All versions | 7.1.3 |
Products include Zeit Serve.
How do I fix CVE-2019-5417?
Upgrade serve to 7.1.3 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2019-5417 being exploited?
There is no known exploitation of CVE-2019-5417 in the wild and no public exploit code.
Other vulnerabilities in serve
Sources
Also known as GHSA-xg75-3277-gvvj.