# CVE-2022-0868: urijs open redirect in URL parsing

Source: https://junglewise.ai/threats/cve-2022-0868-urijs-open-redirect-in-url-parsing  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-03-07. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2022-0868 · Severity: low · CVSS 3.1 · Published 2022-03-07

urijs is a widely-used JavaScript library for parsing and manipulating URLs in web applications. Versions prior to 1.19.10 contain an open redirect vulnerability that allows attackers to craft malicious URLs that bypass security checks and redirect users to untrusted websites, potentially leading to phishing attacks or credential theft.

Technologies: [urijs (npm)](https://junglewise.ai/threats/technologies/urijs). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2022-0868 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-0868 being exploited in the wild.

**How severe is CVE-2022-0868?** Low severity, with a CVSS score of 3.1, published 7 March 2022.

**Which products and versions are affected?** urijs (npm) SEMVER:introduced=0,fixed=1.19.10.

**Is there a fix for CVE-2022-0868?** Yes. urijs (npm): upgrade to 1.19.10 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2022-0868 attacked?** It is attacked over the network.

**Am I affected by CVE-2022-0868?** Check whether you run urijs (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- urijs (npm): upgrade to 1.19.10 or later

  ```sh
  npm install urijs@1.19.10
  ```


## Technical details

urijs versions before 1.19.10 are vulnerable to open redirect (CWE-601) due to a bypass of the previous fix for CVE-2022-0613. The vulnerability exists in the URL parsing logic, specifically in how the library handles scheme delimiters with excessive colons. An attacker can craft a malicious URL that passes the library's validation checks but redirects to an attacker-controlled destination. The vulnerability requires user interaction (a user must click the malicious link or be redirected programmatically). The fix is available in version 1.19.10, which properly handles excessive colons in scheme delimiters.

## Affected products

- urijs urijs before 1.19.10

## Identifiers

- CVE-2022-0868
- GHSA-8h2f-7jc4-7m3m

## Timeline

- 2022-03-07: disclosed
- 2022-03-07: patched: Version 1.19.10 released with fix

## References

- [https://github.com/medialize/uri.js/commit/a8166fe02f3af6dc1b2b888dcbb807155aad9509](https://github.com/medialize/uri.js/commit/a8166fe02f3af6dc1b2b888dcbb807155aad9509)

## Related threats

- [medialize urijs incorrect protocol extraction via whitespace characters](https://junglewise.ai/threats/cve-2022-1243-medialize-urijs-incorrect-protocol-extraction-via-whitespace)
- [medialize uri.js URL confusion with missing scheme](https://junglewise.ai/threats/cve-2022-1233-medialize-uri-js-url-confusion-with-missing-scheme)
- [URI.js leading whitespace bypasses protocol validation](https://junglewise.ai/threats/cve-2022-24723-uri-js-leading-whitespace-bypasses-protocol-validation)
- [urijs authorization bypass via case-insensitive scheme](https://junglewise.ai/threats/cve-2022-0613-urijs-authorization-bypass-via-case-insensitive-scheme)
- [URIjs hostname spoofing via backslashes in URL](https://junglewise.ai/threats/cve-2021-3647-urijs-hostname-spoofing-via-backslashes-in-url)
