CVE-2019-5416: Path Traversal in localhost-now

localhost-now Updated 02 Oct 2025

Summary

25/03/2019
No i
High
7.5

CVE-2019-5416: Path Traversal in localhost-now. Affects localhost-now versions < 1.0.2. No fix is published. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The localhost-now package is an npm package used for serving files locally. It allows developers to quickly set up a local server to serve static files during development. The package is commonly used in web development projects to test and preview web pages locally before deploying them to a production environment. However, all versions of localhost-now are vulnerable to a Path Traversal vulnerability, which allows attackers to access server files outside of the served folder using relative paths.

Vulnerability Detail

The Path Traversal vulnerability in localhost-now arises from the package's failure to properly sanitize URLs. This allows attackers to manipulate the URL and access files outside of the intended served folder. By using relative paths, an attacker can traverse the file system and potentially access sensitive files or execute arbitrary code. This vulnerability poses a significant risk to the security and integrity of the server and the files it serves.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As there is no fix available for this vulnerability, it is recommended to use an alternative package that is not affected. Developers can search for alternative packages on npm or other package repositories that provide similar functionality to localhost-now but have been audited for security vulnerabilities.

Conclusion

The Path Traversal vulnerability in localhost-now exposes servers to the risk of unauthorized access to sensitive files and potential code execution. It is recommended to switch to an alternative package that is not affected by this vulnerability. Developers should also stay updated on any patches or fixes released for localhost-now and apply them promptly. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for localhost-now →

Share this vulnerability

FAQ

localhost-now is an npm package used for serving files locally during web development.

Path Traversal is a vulnerability that allows an attacker to access files outside of the intended directory by manipulating file paths.

The Path Traversal vulnerability in localhost-now can allow attackers to access sensitive files, execute arbitrary code, and potentially compromise the security and integrity of the server and the files it serves.

No, there is currently no fix available for the Path Traversal vulnerability in localhost-now.

To protect your application from Path Traversal attacks, ensure that all user input is properly validated and sanitized. Implement strict file path restrictions and avoid using user-supplied input directly in file operations.

Related vulnerabilities

Recent vulnerabilities recorded for localhost-now.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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