Improper URL Parsing Due to Leading Whitespace in URI.js (CVE-2021-XXXX)

Improper URL Parsing Due to Leading Whitespace in URI.js (CVE-2021-XXXX)

CVE-2022-24723 · MEDIUM Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

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.

Learn more about our Web Application Penetration Testing UK.