Bug 2174307 (CVE-2022-48345)

Summary: CVE-2022-48345 sanitize-url: XSS via HTML entities
Product: [Other] Security Response Reporter: Sandipan Roy <saroy>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: grafana-maint, jkurik, jwendell, nathans, ovanders, rcernich
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sanitize-url 6.0.2 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in sanitize-url. It does not correctly sanitize with colons, possibly leading to a Cross-site scripting risk.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2174387, 2174388, 2174389, 2174390    
Bug Blocks: 2173229    

Description Sandipan Roy 2023-03-01 05:24:20 UTC
sanitize-url (aka @braintree/sanitize-url) before 6.0.2 allows XSS via HTML entities.

https://github.com/braintree/sanitize-url/commit/d4bdc89f1743fe3cdb7c3f24b06e4c875f349b0c
https://github.com/braintree/sanitize-url/compare/v6.0.1...v6.0.2

Comment 1 Pedro Sampaio 2023-03-01 12:35:32 UTC
sanatize-url before 6.0.2 does not correctly sanitize url with colons possibly leading to cross-site scripting risk.

Comment 2 Pedro Sampaio 2023-03-01 12:47:22 UTC
Created grafana tracking bugs for this issue:

Affects: fedora-36 [bug 2174387]


Created zuul tracking bugs for this issue:

Affects: fedora-36 [bug 2174388]