Authorization Bypass Vulnerability in Node URL Parse Package

node-url-parse Updated 02 Oct 2025

Summary

14/02/2022
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2022-0512: Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.6. Affects node-url-parse versions < 1.5.3-1+deb11u2. Fixed in 1.5.3-1+deb11u2. 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

Node URL Parse is a widely used package in the Node.js ecosystem that provides utilities for parsing URLs. It is essential for applications that require URL manipulation and validation. However, prior to version 1.5.6, the package was susceptible to an authorization bypass vulnerability, which could allow unauthorized access to resources.

Vulnerability Detail

The vulnerability, identified as DEBIAN-CVE-2022-0512, stems from an authorization bypass through a user-controlled key in the NPM url-parse package. This flaw allows attackers to manipulate URL parsing to gain unauthorized access to sensitive resources. If exploited, it could lead to significant security breaches, including data leaks and unauthorized actions within applications that rely on this package.

How To Fix

Minimum fixed version

1.5.3-1+deb11u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-url-parse

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

Workaround

If immediate patching is not feasible, consider implementing input validation to sanitize user inputs that are processed by the url-parse package. This can help mitigate the risk of exploitation until the package is updated.

Conclusion

The authorization bypass vulnerability in the node-url-parse package poses a significant risk to applications that utilize it. Immediate action is recommended to update to the patched versions to safeguard against potential exploitation. Utilizing tools like Vulert can further enhance security monitoring.

See every vulnerability recorded for node-url-parse →

Share this vulnerability

FAQ

The vulnerability allows for an authorization bypass through a user-controlled key, potentially leading to unauthorized access.

Versions prior to 1.5.6 are affected in Debian 11, while versions prior to 1.5.7 are affected in Debian 12, 13, and 14.

You can use Vulert, which monitors open-source vulnerabilities in your software using just a manifest file like package-lock.json. Visit Vulert Scanner to check your application without any signup.

Exploitation of this vulnerability could lead to unauthorized access, data leaks, and other security breaches in applications using the affected package.

Yes, implementing input validation to sanitize user inputs can help reduce the risk of exploitation until the package is updated.

Related vulnerabilities

Recent vulnerabilities recorded for node-url-parse.

How To Fix

Minimum fixed version

1.5.3-1+deb11u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-url-parse

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