CVE-2022-0686: Authorization Bypass Through User-Controlled Key in unshiftio/url-parse

Published Feb 20, 2022
·
Updated

An authorization bypass flaw was found in url-parse. While submitting a URL, a local unauthenticated attacker can add a trailing colon (:), but omit the port number. This issue enables an open redirect that allows the exposure of sensitive information or spamming of infrastructure outside the vulnerable server.

Other sources

Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.8.

Authorization Bypass Through User-Controlled Key in NPM url-parse.

Reference:

https://huntr.dev/bounties/55fd06cd-9054-4d80-83be-eb5a454be78c https://github.com/unshiftio/url-parse/commit/d5c64791ef496ca5459ae7f2176a31ea53b127e5

Red Hat

unshift.io url-parse module for NPM could allow a remote attacker to bypass security restrictions, caused by an issue with unable to find the correct hostname when no port number is provided in the url. By sending a specially-crafted request, an attacker could exploit this vulnerability to perform SSRF, open redirect or other attacks depends on the hostname field of parsed url.

IBM

url-parse prior to version 1.5.8 is vulnerable to Authorization Bypass Through User-Controlled Key.

Affected Software

9 affected componentsFixes available
npm/url-parse<1.5.8
1.5.8
redhat/url-parse<1.5.8
1.5.8
IBM Data Virtualization on Cloud Pak for Data<=3.0
IBM Watson Query on Cloud Pak for Data<=2.2
IBM Watson Query on Cloud Pak for Data<=2.1
IBM Watson Query on Cloud Pak for Data<=2.0
IBM Data Virtualization on Cloud Pak for Data<=1.8
IBM Data Virtualization on Cloud Pak for Data<=1.7
Url-parse Project Url-parse Node.js<1.5.8

Event History

Feb 20, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Feb 21, 2022
Advisory Published
12:00 AM
Aug 15, 2025
Data Sourced
via IBM·03:29 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-0686?

CVE-2022-0686 is an authorization bypass vulnerability in url-parse prior to version 1.5.8.

2

What is the severity of CVE-2022-0686?

CVE-2022-0686 has a severity rating of 9.1 (Critical).

3

How can an attacker exploit CVE-2022-0686?

An attacker can exploit CVE-2022-0686 by adding a trailing colon (:) without the port number while submitting a URL, which enables an open redirect that can expose sensitive information or spam infrastructure.

4

What is the remedy for CVE-2022-0686?

The remedy for CVE-2022-0686 is to update url-parse to version 1.5.8 or higher.

5

Where can I find more information about CVE-2022-0686?

You can find more information about CVE-2022-0686 at the following references: [Reference 1](https://huntr.dev/bounties/55fd06cd-9054-4d80-83be-eb5a454be78c), [Reference 2](https://github.com/unshiftio/url-parse/commit/d5c64791ef496ca5459ae7f2176a31ea53b127e5), [Reference 3](https://github.com/RedHatInsights/ocp-advisor-frontend/blob/prod-stable/package-lock.json).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203