Vulnerabilities in pkg:npm/harp
PACKAGECVE-2019-5437 is a MODERATE (CVSS 5.3) unauthorized file access vulnerability (CWE-548: Exposure of Information Through Directory Listing) affecting Harp libraries in the npm ecosystem. The issue involves unauthorized file access in harp. Remediation is available by upgrading affected packages to version 0.40.2.
pkg:npm/harp
Vulnerability advisories affecting package pkg:npm/harp. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-46hv-7769-j7rx | CVE-2019-5437 | MODERATE | Unauthorized File Access in harp |
| GHSA-6fmm-47qc-p4m4 | CVE-2019-5438 | MODERATE | Unauthorized File Access in harp |
| GHSA-cx7r-634m-2q2h | - | MODERATE | Cross-Site Scripting in harp |
CVE-2019-5437 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2019-5437
To remediate this vulnerability, upgrade all affected Harp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install harp@0.40.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls harp
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-5437, inspect your project dependencies using npm:
npm ls harp
Analyze the terminal output to locate any version of Harp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.40.2), your application is affected.
Note: The npm ls harp command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-548: Exposure of Information Through Directory Listing, where the product inappropriately exposes a directory listing with an index of all the resources located inside of the directory. In Harp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-5437 Affected Harp Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
harp
|
npm |
< 0.40.2
|
0.40.2
|
References
Frequently Asked Questions
What is CVE-2019-5437?
Which Harp versions are affected?
What version fixes CVE-2019-5437?
Is harp affected?
What is the CVSS score of CVE-2019-5437?
What CWE is associated with CVE-2019-5437?
How can I check npm dependencies for CVE-2019-5437?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-46hv-7769-j7rx",
"modified" : "2023-09-07T21:43:42Z",
"published" : "2019-06-13T16:12:22Z",
"aliases" : [ "CVE-2019-5437" ],
"summary" : "Unauthorized File Access in harp",
"details" : "Affected versions of `harp` are vulnerable to Unauthorized File Access. The package states that it ignores files and directories with names that start with an underscore, such as `_secret-folder`. If the underscore character is URL encoded the server delivers the file.\n\n## Recommendation\n\nUpgrade to version `0.40.2` or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "harp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.40.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-5437"
}, {
"type" : "WEB",
"url" : "https://github.com/sintaxi/harp/commit/1ec790baeeb2bfdb4584f1998af3d10a8fa31210"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/453820"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/807"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-548" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-13T16:10:40Z",
"nvd_published_at" : null
}
}