CVE-2022-0624: Authorization Bypass in parse-path

parse-path Updated 02 Oct 2025

Summary

29/06/2022
Yes i
High
7.3

CVE-2022-0624: Authorization Bypass in parse-path. Affects parse-path versions < 5.0.0. Fixed in 5.0.0. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The 'parse-path' package is an npm package used for parsing and manipulating file paths. It provides functions to extract information such as the directory, filename, and extension from a given path. The package is widely used in JavaScript projects for file path manipulation.

Vulnerability Detail

The 'parse-path' package prior to version 5.0.0 is affected by an authorization bypass vulnerability. This vulnerability allows an attacker to bypass authorization checks by providing a user-controlled key. By exploiting this vulnerability, an attacker can gain unauthorized access to restricted resources or perform actions that should be restricted to privileged users. The vulnerability has a CVSS score of 7.3, indicating a high severity.

How To Fix

Minimum fixed version

5.0.0

This is the first release that contains the fix.

npm install parse-path@5.0.0

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

Conclusion

The 'parse-path' package prior to version 5.0.0 is affected by an authorization bypass vulnerability. It is recommended to upgrade to version 5.0.0 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for parse-path →

Share this vulnerability

FAQ

This vulnerability allows an attacker to bypass authorization checks and gain unauthorized access to restricted resources or perform privileged actions.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file to the playground and it will alert you if the vulnerability is present.

No, there are no known workarounds for this vulnerability. It is recommended to upgrade to the fixed version of the 'parse-path' package.

No, there is no known exploit code available for this vulnerability at the moment.

How To Fix

Minimum fixed version

5.0.0

This is the first release that contains the fix.

npm install parse-path@5.0.0

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