CVE-2018-3731 Path Traversal in public
A path traversal flaw in a public Node.js module allows attackers to read arbitrary files with known paths.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-3731?
CVE-2018-3731 is a high-severity path traversal vulnerability in HackerOne public node module, published on 7 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
public node module suffers from a Path Traversal vulnerability due to lack of validation of filePath, which allows a malicious user to read content of any file with known path.
Weakness: CWE-22
Which versions are affected by CVE-2018-3731?
2 open source packages ship an affected version, including public. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
public npm | All versions | 0.1.3 |
public npm | All versions | 0.1.3 |
Products include Public.js Project Public.js.
How do I fix CVE-2018-3731?
Upgrade public to 0.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-2018-3731 being exploited?
There is no known exploitation of CVE-2018-3731 in the wild and no public exploit code.
Other vulnerabilities in HackerOne public node module
Sources
Also known as GHSA-rwv8-jvff-jq28.