Directory Traversal Vulnerability in node-simple-router

node-simple-router Updated 02 Oct 2025

Summary

23/02/2021
HIGH
Yes i
High
Not published

GHSA-f6gj-7592-5jxm: Directory Traversal. Affects node-simple-router versions < 0.10.1. Fixed in 0.10.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

node-simple-router is an npm package that provides a simple router for Node.js applications. It allows developers to define routes and handle HTTP requests easily. However, versions 0.10.0 and earlier of this package are vulnerable to a directory traversal issue.

Vulnerability Detail

The directory traversal vulnerability in node-simple-router allows an attacker to access files outside of the intended directory. By manipulating the path parameter in certain requests, an attacker can navigate to sensitive files on the server. This can lead to unauthorized access, disclosure of sensitive information, or even remote code execution.

How To Fix

Minimum fixed version

0.10.1

This is the first release that contains the fix.

npm install node-simple-router@0.10.1

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

Workaround

If upgrading to the latest version is not possible immediately, a temporary workaround is to implement input validation and sanitization for the path parameter in the affected routes. Ensure that the path only contains allowed characters and restrict access to sensitive directories.

Conclusion

The directory traversal vulnerability in node-simple-router can have serious security implications. It is crucial to upgrade to the latest version or apply the provided workaround to mitigate the risk. For further assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for node-simple-router →

Share this vulnerability

FAQ

A directory traversal vulnerability allows an attacker to access files outside of the intended directory by manipulating input parameters.

The directory traversal vulnerability in node-simple-router can lead to unauthorized access, disclosure of sensitive information, or remote code execution.

Versions 0.10.0 and earlier of the node-simple-router package are affected by this vulnerability.

To fix this vulnerability, upgrade to version 0.10.1 or later of the node-simple-router package.

Yes, if upgrading immediately is not possible, you can implement input validation and sanitization for the affected routes.

References

Related vulnerabilities

Recent vulnerabilities recorded for node-simple-router.

How To Fix

Minimum fixed version

0.10.1

This is the first release that contains the fix.

npm install node-simple-router@0.10.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