CVE-2019-5415: Path Traversal in serve

serve Updated 02 Oct 2025

Summary

25/03/2019
Yes i
High
7.5

CVE-2019-5415: Path Traversal in serve. Affects serve versions < 7.0.0. Fixed in 7.0.0. 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 'serve' package is an npm package used for serving static files over HTTP. It allows developers to quickly and easily set up a local server for testing and development purposes. The package provides a simple command-line interface and supports various options for configuring the server.

Vulnerability Detail

Versions of 'serve' prior to 7.0.1 are vulnerable to Path Traversal. This vulnerability allows attackers to access explicitly ignored folders by manipulating the path and including a '/./' sequence. By exploiting this vulnerability, attackers can gain unauthorized access to hidden folders and files, potentially exposing sensitive information or executing arbitrary code on the server.

How To Fix

Latest published version: 14.2.6 as of 23 Oct 2026

npm install serve@14.2.6

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

If you need the minimum change

7.0.0

This is the first release that contains the fix.

npm install serve@7.0.0

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

Workaround

There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of the 'serve' package to mitigate the risk.

Conclusion

The 'serve' package prior to version 7.0.1 is vulnerable to Path Traversal, which allows attackers to access hidden folders and files. To mitigate this risk, it is crucial to upgrade to version 7.0.1 or later. No known workarounds exist for this vulnerability. For additional support, please contact DevNack.com.

See every vulnerability recorded for serve →

Share this vulnerability

FAQ

This vulnerability allows attackers to access hidden folders and files, potentially exposing sensitive information or executing arbitrary code on the server.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any known vulnerabilities.

There are no known public exploits for this vulnerability at the time of writing. However, it is crucial to upgrade to the fixed version to prevent potential attacks.

It is not recommended to manually patch the vulnerability without upgrading to the fixed version. Upgrading ensures that you have the latest security fixes and reduces the risk of introducing errors while attempting manual patches.

For further support on vulnerability remediation or any other security concerns, you can reach out to info@devnack.com. Our team of experts will be happy to assist you.

Related vulnerabilities

Recent vulnerabilities recorded for serve.

How To Fix

Latest published version: 14.2.6 as of 23 Oct 2026

npm install serve@14.2.6

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

If you need the minimum change

7.0.0

This is the first release that contains the fix.

npm install serve@7.0.0

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