Bug 2062370 (CVE-2022-24723) - CVE-2022-24723 urijs: Leading white space bypasses protocol validation
Summary: CVE-2022-24723 urijs: Leading white space bypasses protocol validation
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-24723
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2062371 2062372 2062746 2062747 2062875 2062876 2063137 2077698
Blocks: 2062373
TreeView+ depends on / blocked
 
Reported: 2022-03-09 16:26 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-11-28 14:39 UTC (History)
34 users (show)

Fixed In Version: urijs 1.19.9
Doc Type: If docs needed, set a value
Doc Text:
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.
Clone Of:
Environment:
Last Closed: 2022-05-05 09:16:18 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:1681 0 None None None 2022-05-03 16:43:38 UTC
Red Hat Product Errata RHSA-2022:1715 0 None None None 2022-05-05 02:39:14 UTC
Red Hat Product Errata RHSA-2022:8652 0 None None None 2022-11-28 14:39:37 UTC

Description Guilherme de Almeida Suckevicz 2022-03-09 16:26:52 UTC
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.

References:
https://github.com/medialize/URI.js/security/advisories/GHSA-gmv4-r438-p67f
https://huntr.dev/bounties/82ef23b8-7025-49c9-b5fc-1bb9885788e5/

Upstream patch:
https://github.com/medialize/uri.js/commit/86d10523a6f6e8dc4300d99d671335ee362ad316

Comment 1 Guilherme de Almeida Suckevicz 2022-03-09 16:27:20 UTC
Created dotnet3.1 tracking bugs for this issue:

Affects: fedora-all [bug 2062372]


Created nodejs-bash-language-server tracking bugs for this issue:

Affects: fedora-all [bug 2062371]

Comment 9 juneau 2022-03-21 18:30:04 UTC
Services affected/delegated:

services-insights-essentials/remediations/insights-remediations:971e5ea/urijs-1.19.6 https://github.com/RedHatInsights/insights-remediations/blob/master/package-lock.json
services-insights-essentials/remediations/remediations:971e5ea/urijs-1.19.6 https://github.com/RedHatInsights/insights-remediations/blob/master/package-lock.json
services-insights-essentials/insights-remediations-frontend/insights-remediations-frontend:288a20a/urijs-1.19.10 https://github.com/RedHatInsights/insights-remediations-frontend/blob/master/package-lock.json

services-advisor/advisor/insights-advisor-frontend:95f9c0c/urijs-1.19.7 https://github.com/RedHatInsights/insights-advisor-frontend/blob/production/package-lock.json

services-compliance/compliance/compliance-frontend:634d358/urijs-1.19.7 https://github.com/RedHatInsights/compliance-frontend/blob/master/package-lock.json

Comment 12 errata-xmlrpc 2022-05-03 16:43:35 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8

Via RHSA-2022:1681 https://access.redhat.com/errata/RHSA-2022:1681

Comment 13 errata-xmlrpc 2022-05-05 02:39:10 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Management for Kubernetes 2.3 for RHEL 7
  Red Hat Advanced Cluster Management for Kubernetes 2.3 for RHEL 8

Via RHSA-2022:1715 https://access.redhat.com/errata/RHSA-2022:1715

Comment 14 Product Security DevOps Team 2022-05-05 09:16:14 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-24723

Comment 15 errata-xmlrpc 2022-11-28 14:39:35 UTC
This issue has been addressed in the following products:

  Red Hat Fuse 7.11.1

Via RHSA-2022:8652 https://access.redhat.com/errata/RHSA-2022:8652


Note You need to log in before you can comment on or make changes to this bug.