Security mailing lists by PureSourceCode

CVE-2021-23648

MEDIUM 6.1CVSS 3.1

Cross-site Scripting in sanitize-url

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

Published
16 Mar 2022
Last modified
10 Sep 2026
Assigned by
report@snyk.io
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-hqq7-2q2v-82xqSNYK-JS-BRAINTREESANITIZEURL-2339882
Sources
NVDJSONOSV GHSA-hqq7-2q2v-82xqJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD report@snyk.io (Secondary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD paypal braintree/sanitize-url
cpe:2.3:a:paypal:braintree\/sanitize-url:*:*:*:*:*:node.js:*:*
< 6.0.0 6.0.0
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
= 34
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
= 35
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
= 36
OSV npm @braintree/sanitize-url < 6.0.0 6.0.0

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 16 Mar 2022)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 Mar 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.