Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1ocXE3LTJxMnYtODJ4cc0zPQ
Cross-site Scripting in sanitize-url
The package @braintree/sanitize-url
before 6.0.0 is vulnerable to Cross-site Scripting (XSS) due to improper sanitization in the sanitizeUrl
function.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1ocXE3LTJxMnYtODJ4cc0zPQ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 2 years ago
Updated: over 1 year ago
CVSS Score: 5.4
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Identifiers: GHSA-hqq7-2q2v-82xq, CVE-2021-23648
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-23648
- https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183
- https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882
- https://github.com/braintree/sanitize-url/pull/40
- https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11
- https://lists.fedoraproject.org/archives/list/[email protected]/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/
- https://github.com/advisories/GHSA-hqq7-2q2v-82xq
Blast Radius: 22.4
Affected Packages
npm:@braintree/sanitize-url
Dependent packages: 148Dependent repositories: 14,071
Downloads: 5,605,287 last month
Affected Version Ranges: < 6.0.0
Fixed in: 6.0.0
All affected versions: 1.0.0, 2.0.0, 2.0.1, 2.0.2, 2.1.0, 3.0.0, 3.1.0, 4.0.0, 4.0.1, 4.1.0, 4.1.1, 5.0.0, 5.0.1, 5.0.2
All unaffected versions: 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 7.0.0, 7.0.1