Bug 2062370 (CVE-2022-24723)

Summary: CVE-2022-24723 urijs: Leading white space bypasses protocol validation
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aileenc, andrew.slice, asn, bdettelb, bodavis, chazlett, crummel, dbhole, dhalasz, dotnet-packagers, drieden, fjansen, francisco.vergarat, gmalinko, gparvin, harold, janstey, jochrist, jramanat, jwon, kanderso, kaycoth, lvaleeva, njean, omajid, pahickey, pdelbell, pfilipen, rjanekov, rwagner, stcannon, sthirugn, vkrizan, vmugicag
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-05 09:16:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2062371, 2062372, 2062746, 2062747, 2062875, 2062876, 2063137, 2077698    
Bug Blocks: 2062373    

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