Related Vulnerabilities: CVE-2022-24723  

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.

Description

The MITRE CVE dictionary describes this issue as:

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.

Additional Information

  • Bugzilla 2062370: CVE-2022-24723 urijs: Leading white space bypasses protocol validation
  • CWE-20: Improper Input Validation
  • FAQ: Frequently asked questions about CVE-2022-24723