CVE-2019-5423: Http live simulator Path Traversal Vulnerability

HIGH
Advisory Identifier: GHSA-2hhw-p8mg-jrm6
CWE-22
Published
Advisory Summary

CVE-2019-5423 is a HIGH path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Http live simulator libraries in the npm ecosystem. The issue involves path traversal in http-live-simulator. Remediation is available by upgrading affected packages to version 1.0.6.

CVE-2019-5423 at a Glance

CVE Identifier CVE-2019-5423
GHSA Identifier GHSA-2hhw-p8mg-jrm6
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Http live simulator
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2019-5423

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

http-live-simulator fixed: 1.0.6
npm install http-live-simulator@1.0.6
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 http-live-simulator

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2019-5423, inspect your project dependencies using npm:

npm ls http-live-simulator

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

Note: The npm ls http-live-simulator 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 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Http live simulator, 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

Versions of `http-live-simulator` prior to 1.0.6 are vulnerable to Path Traversal. Due to insufficient input sanitization, attackers can access server files by using relative paths. ## Recommendation Upgrade to version 1.0.6

CVE-2019-5423 Affected Http live simulator Versions

1 component(s)
Fixed Versions:
1.0.6
Product / Package Ecosystem Affected Versions Fixed Version
http-live-simulator
npm
< 1.0.6
1.0.6

References

Frequently Asked Questions

What is CVE-2019-5423?
CVE-2019-5423 is a security vulnerability in Http live simulator involving Path Traversal in http-live-simulator under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Http live simulator versions are affected?
Affected versions include releases prior to 1.0.6 across affected packages: http-live-simulator.
What version fixes CVE-2019-5423?
Upgrading to 1.0.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is http-live-simulator affected?
Yes, http-live-simulator is affected in releases prior to 1.0.6. Upgrade your dependency to 1.0.6 or later.
What CWE is associated with CVE-2019-5423?
CVE-2019-5423 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check npm dependencies for CVE-2019-5423?
Run the dependency tree command: 'npm ls http-live-simulator'. 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-2hhw-p8mg-jrm6",
  "modified" : "2020-08-31T18:36:11Z",
  "published" : "2019-04-08T15:18:40Z",
  "aliases" : [ "CVE-2019-5423" ],
  "summary" : "Path Traversal in http-live-simulator",
  "details" : "Versions of `http-live-simulator` prior to 1.0.6 are vulnerable to Path Traversal.  Due to insufficient input sanitization, attackers can access server files by using relative paths. \n\n\n## Recommendation\n\nUpgrade to version 1.0.6",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "http-live-simulator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-5423"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/384939"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-2hhw-p8mg-jrm6"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/799"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:52:06Z",
    "nvd_published_at" : null
  }
}