CVE-2018-3714: Path Traversal in node-srv
Summary
CVE-2018-3714: Path Traversal in node-srv. Affects node-srv versions < 2.1.1. Fixed in 2.1.1. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
You can find more information about this vulnerability in the GitHub Advisory Database: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-52r9-g5g6-2hjp/GHSA-52r9-g5g6-2hjp.json