CVE-2021-23648
JSON

5.4medium

Cross-site Scripting (XSS)

Severity
5.4medium CVSS:3.1 by snyk
Exploit likelihood
1.43% (higher than 73% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-hqq7-2q2v-82xqSNYK-JS-BRAINTREESANITIZEURL-2339882

Description

The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.

Affected

Product or packageVersionsReported by
@braintree/sanitize-urlfrom unspecified before 6.0.0CVE List
@braintree/sanitize-url (npm)before 6.0.0GitHub Advisory Database
paypal braintree/sanitize-urlbefore 6.0.0NVD
fedoraproject fedora34, 35, 36NVD

All scores

snyk5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

What each source says

CVE List

The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.

GitHub Advisory Database

The package @braintree/sanitize-url before 6.0.0 is vulnerable to Cross-site Scripting (XSS) due to improper sanitization in the sanitizeUrl function.

NVD (es)

El paquete @braintree/sanitize-url versiones anteriores a 6.0.0 es vulnerable a un ataque de tipo Cross-site Scripting (XSS) debido a un saneo inapropiado en la función sanitizeUrl

References

https://snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882exploit, patch, third-party-advisory, web
https://github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11broken-link, web
https://github.com/braintree/sanitize-url/pull/40issue-tracking, patch, third-party-advisory, web
https://github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183patch, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2021-23648advisory
https://github.com/braintree/sanitize-urlpackage
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3Dweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRHweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQweb

Sources

SourceRecordLicence
CVE ListCVE-2021-23648 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-hqq7-2q2v-82xq changed 2026-09-10CC-BY-4.0
NVDCVE-2021-23648 changed 2026-06-17Public domain