CVE-2018-3714: Path Traversal in node-srv

node-srv Updated 02 Oct 2025

Summary

26/07/2018
Yes i
Moderate
6.5

CVE-2018-3714: Path Traversal in node-srv. Affects node-srv versions < 2.1.1. Fixed in 2.1.1. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The node-srv package is an npm module used for server-side file handling in Node.js applications. It provides functionality for serving files and directories over HTTP. The package is vulnerable to a path traversal attack, which allows a remote attacker to read files from the server that uses node-srv.

Vulnerability Detail

The vulnerability in node-srv is due to insufficient input validation. By exploiting the path traversal vulnerability, an attacker can bypass file access restrictions and read arbitrary files on the server. This can lead to unauthorized access to sensitive information, such as configuration files, user data, or other confidential data stored on the server. The vulnerability has a CVSS score of 6.5, indicating a moderate severity.

How To Fix

Latest published version: 3.0.3 as of 22 Oct 2026

npm install node-srv@3.0.3

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

If you need the minimum change

2.1.1

This is the first release that contains the fix.

npm install node-srv@2.1.1

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 update the node-srv package to the latest secure version.

Conclusion

The node-srv package is vulnerable to a path traversal attack, allowing remote attackers to read files from the server. To mitigate this vulnerability, it is crucial to update the package to version 2.1.1 or later. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for node-srv →

Share this vulnerability

FAQ

The vulnerability allows an attacker to read arbitrary files on the server, potentially exposing sensitive information and compromising the security of the application.

No, authentication is not required. The attacker can exploit the vulnerability remotely without any authentication.

No, only versions before 2.1.1 are vulnerable to this path traversal issue. It is recommended to update to version 2.1.1 or later.

There are no known public exploits specifically targeting this vulnerability at the moment.

How To Fix

Latest published version: 3.0.3 as of 22 Oct 2026

npm install node-srv@3.0.3

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

If you need the minimum change

2.1.1

This is the first release that contains the fix.

npm install node-srv@2.1.1

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