CVE-2019-5438: Unauthorized File Access in harp
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.44968%
CWE
Published
6/13/2019
Updated
9/7/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
harp | npm | < 0.40.3 | 0.40.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The security patches add symlink validation
checks to the process
middleware in lib/middleware.js
. The first commit (51cfb247) directly modifies exports.process
to add lstat/readlink
checks, indicating this was the vulnerable entry point that previously served files without validation
. Subsequent commits refactor the check into dedicated middleware, but the core vulnerability existed in the file processing flow handled by exports.process
prior to these mitigations. This function
would appear in runtime profiles when serving malicious symlinks as it's the main asset pipeline handler.