CVE-2019-5438 Unauthorized File Access in harp
An attacker can exploit symlink path traversal in the harp module to read or modify arbitrary files on the system.
- 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-5438?
CVE-2019-5438 is a medium-severity path traversal vulnerability in harp, published on 10 May 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Path traversal using symlink in npm harp module versions <= 0.29.0.
Which versions are affected by CVE-2019-5438?
2 open source packages ship an affected version, including harp. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
harp npm | All versions | 0.40.3 |
harp npm | All versions | 0.40.3 |
Products include Harpjs Harp.
How do I fix CVE-2019-5438?
Upgrade harp to 0.40.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-5438 being exploited?
There is no known exploitation of CVE-2019-5438 in the wild and no public exploit code.
Other vulnerabilities in harp
Sources
Also known as GHSA-6fmm-47qc-p4m4.