PT-2022-16831 · Uri.Js · Uri.Js
P0Cas
·
Published
2022-03-03
·
Updated
2023-07-03
·
CVE-2022-24723
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
URI.js versions prior to 1.19.9
Description
The issue arises from whitespace characters not being removed from the beginning of the protocol, resulting in improper URL parsing. This can cause protocol validation mechanisms to fail. The problem has been patched in version 1.19.9. As a workaround, removing leading whitespace from values before passing them to
URI.parse can mitigate the issue.Recommendations
For versions prior to 1.19.9, update to version 1.19.9 to resolve the issue.
As a temporary workaround, consider removing leading whitespace from values before passing them to
URI.parse, for example, by using a function to remove whitespace from the URL.Exploit
Fix
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Uri.Js