GHSA-f6gj-7592-5jxm: Node simple router Path Traversal Vulnerability

HIGH
Published
Advisory Summary

GHSA-f6gj-7592-5jxm is a HIGH path traversal vulnerability (General Security Weakness) affecting Node simple router libraries in the npm ecosystem. The issue involves directory traversal. Remediation is available by upgrading affected packages to version 0.10.1.

GHSA-f6gj-7592-5jxm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-f6gj-7592-5jxm
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Node simple router
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-f6gj-7592-5jxm

To remediate this vulnerability, upgrade all affected Node simple router dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

node-simple-router fixed: 0.10.1
npm install node-simple-router@0.10.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls node-simple-router

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-f6gj-7592-5jxm, inspect your project dependencies using npm:

npm ls node-simple-router

Analyze the terminal output to locate any version of Node simple router in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.1), your application is affected.

Note: The npm ls node-simple-router command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Node simple router, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Affected versions of node-simple-router package (0.10.0 and before), are vulnerable to a directory traversal issue.

GHSA-f6gj-7592-5jxm Affected Node simple router Versions

1 component(s)
Fixed Versions:
0.10.1
Product / Package Ecosystem Affected Versions Fixed Version
node-simple-router
npm
< 0.10.1
0.10.1

References

Frequently Asked Questions

What is GHSA-f6gj-7592-5jxm?
GHSA-f6gj-7592-5jxm is a security vulnerability in Node simple router involving Directory Traversal under General Security Weakness.
Which Node simple router versions are affected?
Affected versions include releases prior to 0.10.1 across affected packages: node-simple-router.
What version fixes GHSA-f6gj-7592-5jxm?
Upgrading to 0.10.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is node-simple-router affected?
Yes, node-simple-router is affected in releases prior to 0.10.1. Upgrade your dependency to 0.10.1 or later.
What CWE is associated with GHSA-f6gj-7592-5jxm?
GHSA-f6gj-7592-5jxm is classified under General Security Weakness.
How can I check npm dependencies for GHSA-f6gj-7592-5jxm?
Run the dependency tree command: 'npm ls node-simple-router'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f6gj-7592-5jxm",
  "modified" : "2021-02-23T21:33:53Z",
  "published" : "2021-02-23T21:33:53Z",
  "withdrawn" : "2021-02-23T21:33:53Z",
  "aliases" : [ ],
  "summary" : "Directory Traversal",
  "details" : "Affected versions of node-simple-router package (0.10.0 and before), are vulnerable to a directory traversal issue.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "node-simple-router"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.10.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sandy98/node-simple-router/commit/dfdd52e2e80607af433097d940b3834fd96df488#diff-b9cfc7f2cdf78a7f4b91a753d10865a2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-05-29T20:20:42Z",
    "nvd_published_at" : null
  }
}