CVE-2022-24723: Improper Input Validation in URI.js

Published Mar 3, 2022
·
Updated

An improper input validation flaw was found in urijs where white space characters are not removed from the beginning of an URL. This issue allows bypassing the protocol validation.

Other sources

URI.js is a Javascript URL mutation library. Before version 1.19.9, whitespace characters are not removed from the beginning of the protocol, so URLs are not parsed properly. This issue has been patched in version 1.19.9. Removing leading whitespace from values before passing them to URI.parse can be used as a workaround.

Affected Software

2 affected componentsFixes available
redhat/urijs<1.19.9
1.19.9
Uri.js Project Uri.js<1.19.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/urijs to a version that resolves this vulnerability.

    Fixed in 1.19.9
  2. Upgrade

    Upgrade URI.js to a version that resolves this vulnerability.

    Fixed in 1.19.9
  3. Compensating control

    Workaround: remove leading whitespace characters from values before passing them to URI.parse (up to the vulnerable condition in versions before 1.19.9).

Event History

Mar 3, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·08:35 PM
Data Sourced
via MITRE·08:35 PM
DescriptionSeverityWeakness
Mar 9, 2022
Data Sourced
via Red Hat·04:26 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-24723?

CVE-2022-24723 is an improper input validation flaw in urijs where white space characters are not removed from the beginning of the protocol, causing URLs to not be parsed properly.

2

What is the severity of CVE-2022-24723?

The severity of CVE-2022-24723 is medium with a severity value of 5.3.

3

How does CVE-2022-24723 impact urijs?

CVE-2022-24723 impacts urijs by allowing white space characters at the beginning of the protocol, which leads to incorrect URL parsing.

4

How can CVE-2022-24723 be fixed?

CVE-2022-24723 can be fixed by upgrading to version 1.19.9 of urijs, which has a patch for the issue.

5

What are the references for CVE-2022-24723?

The references for CVE-2022-24723 are: [1] GitHub Advisory - GHSA-gmv4-r438-p67f, [2] Huntr.dev Bounty - 82ef23b8-7025-49c9-b5fc-1bb9885788e5, [3] GitHub Commit - 86d10523a6f6e8dc4300d99d671335ee362ad316.

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