CVE-2022-0512: Authorization bypass in url-parse

url-parse Updated 02 Oct 2025

Summary

15/02/2022
Yes i
Moderate
5.3

CVE-2022-0512: Authorization bypass in url-parse. Affects url-parse versions < 1.5.6. Fixed in 1.5.6. How to fix ↓

Also tracked for

The same CVE-2022-0512 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

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 'url-parse' package is an npm package that provides a URL parsing utility for Node.js and browsers. It allows developers to parse and manipulate URLs in a convenient way. However, versions prior to 1.5.6 of this package are vulnerable to an authorization bypass issue.

Vulnerability Detail

The vulnerability, identified as CVE-2022-0512, allows an attacker to bypass authorization through a user-controlled key in the 'url-parse' package. This can potentially lead to unauthorized access to sensitive information or actions that should be restricted to certain users. The vulnerability has a CVSS score of 5.3, indicating a moderate severity level.

How To Fix

Latest published version: 1.5.10 as of 22 Oct 2026

npm install url-parse@1.5.10

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.5.6

This is the first release that contains the fix.

npm install url-parse@1.5.6

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

Workaround

There is no known workaround for this vulnerability. It is crucial to update the package to the fixed version as soon as possible.

Conclusion

In conclusion, the 'url-parse' package prior to version 1.5.6 is vulnerable to an authorization bypass issue. It is crucial for developers to update the package to the fixed version to mitigate the risk of unauthorized access and potential misuse of sensitive information. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for url-parse →

Share this vulnerability

FAQ

This vulnerability can allow an attacker to bypass authorization and gain unauthorized access to sensitive information or perform actions that should be restricted.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your package-lock.json file and the playground will alert you in real-time if any open-source vulnerabilities, including this one, are detected.

Yes, the fix for this vulnerability is to update the 'url-parse' package to version 1.5.6 or later.

No, there are no known workarounds for this vulnerability. It is essential to update the package to the fixed version.

This vulnerability has a CVSS score of 5.3, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for url-parse.

How To Fix

Latest published version: 1.5.10 as of 22 Oct 2026

npm install url-parse@1.5.10

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.5.6

This is the first release that contains the fix.

npm install url-parse@1.5.6

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