Vulnerabilities in pkg:npm/parse-path

PACKAGE
Advisory Identifier: GHSA-3j8f-xvm3-ffx4
Advisory Summary

CVE-2022-0624 is a HIGH (CVSS 7.3) authorization bypass vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Parse path libraries in the npm ecosystem. The issue involves authorization bypass in parse-path. Remediation is available by upgrading affected packages to version 5.0.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/parse-path

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/parse-path. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3j8f-xvm3-ffx4 CVE-2022-0624 HIGH Authorization Bypass in parse-path

CVE-2022-0624 at a Glance

CVE Identifier CVE-2022-0624
GHSA Identifier GHSA-3j8f-xvm3-ffx4
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Parse path
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2022-0624

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

parse-path fixed: 5.0.0
npm install parse-path@5.0.0
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 parse-path

How to Check if You Are Affected

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

npm ls parse-path

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

Note: The npm ls parse-path 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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Parse path, 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

Authorization Bypass Through User-Controlled Key in GitHub repository ionicabizau/parse-path prior to 5.0.0.

CVE-2022-0624 Affected Parse path Versions

1 component(s)
Fixed Versions:
5.0.0
Product / Package Ecosystem Affected Versions Fixed Version
parse-path
npm
< 5.0.0
5.0.0

References

Frequently Asked Questions

What is CVE-2022-0624?
CVE-2022-0624 is a security vulnerability in Parse path involving Authorization Bypass in parse-path under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Parse path versions are affected?
Affected versions include releases prior to 5.0.0 across affected packages: parse-path.
What version fixes CVE-2022-0624?
Upgrading to 5.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is parse-path affected?
Yes, parse-path is affected in releases prior to 5.0.0. Upgrade your dependency to 5.0.0 or later.
What is the CVSS score of CVE-2022-0624?
CVE-2022-0624 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2022-0624?
CVE-2022-0624 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check npm dependencies for CVE-2022-0624?
Run the dependency tree command: 'npm ls parse-path'. 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-3j8f-xvm3-ffx4",
  "modified" : "2022-07-08T17:05:50Z",
  "published" : "2022-06-29T00:00:57Z",
  "aliases" : [ "CVE-2022-0624" ],
  "summary" : "Authorization Bypass in parse-path",
  "details" : "Authorization Bypass Through User-Controlled Key in GitHub repository ionicabizau/parse-path prior to 5.0.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "parse-path"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0624"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ionicabizau/parse-path/commit/f9ad8856a3c8ae18e1cf4caef5edbabbc42840e8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ionicabizau/parse-path"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/afffb2bd-fb06-4144-829e-ecbbcbc85388"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-05T22:13:37Z",
    "nvd_published_at" : "2022-06-28T09:15:00Z"
  }
}