CVE-2019-5438: Unauthorized File Access in harp

harp Updated 02 Oct 2025

Summary

13/06/2019
Yes i
Moderate
5.3

CVE-2019-5438: Unauthorized File Access in harp. Affects harp versions < 0.40.3. Fixed in 0.40.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The harp package is an open-source module in the npm ecosystem. It is used for serving static websites and assets. The package allows developers to easily create and deploy static sites with features like preprocessing, asset pipeline, and more. However, all versions of harp are vulnerable to Unauthorized File Access.

Vulnerability Detail

The vulnerability in harp arises when a symlink in the project's base directory points to a file outside of the directory. In such cases, the file is served by harp, potentially allowing an attacker to access sensitive files on the server. This vulnerability can lead to unauthorized access to confidential information and compromise the security of the server.

How To Fix

Latest published version: 0.50.1 as of 22 Oct 2026

npm install harp@0.50.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.40.3

This is the first release that contains the fix.

npm install harp@0.40.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As there is no fix available, a possible workaround is to manually check and ensure that there are no symlinks in the project's base directory pointing to files outside of the directory. This can be done by reviewing the project's file structure and removing any suspicious symlinks.

Conclusion

The harp package is vulnerable to Unauthorized File Access, which can lead to unauthorized access to sensitive files on the server. Currently, there is no fix available, so it is recommended to use alternative modules. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for harp →

Share this vulnerability

FAQ

The vulnerability allows unauthorized access to sensitive files on the server, potentially leading to the exposure of confidential information and compromising the security of the server.

All versions of harp are affected by this vulnerability.

No, currently there is no fix available for this vulnerability.

Yes, it is recommended to consider using alternative modules until a fix is made available for harp.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

Related vulnerabilities

Recent vulnerabilities recorded for harp.

How To Fix

Latest published version: 0.50.1 as of 22 Oct 2026

npm install harp@0.50.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.40.3

This is the first release that contains the fix.

npm install harp@0.40.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback