CVE-2021-23648: Cross-site Scripting (XSS)

Published Feb 22, 2022
·
Updated

A flaw was found in sanitize-url due to improper sanitization in the sanitizeUrl function. This issue causes vulnerability to Cross-site Scripting in sanitize-url.

Other sources

Node.js @braintree/sanitize-url module is vulnerable to cross-site scripting, caused by improper validation of user-supplied input. A remote attacker could exploit this vulnerability using a specially-crafted URL to execute script in a victim's Web browser within the security context of the hosting Web site, once the URL is clicked. An attacker could use this vulnerability to steal the victim's cookie-based authentication credentials.

IBM

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

Affected Software

13 affected componentsFixes available
redhat/grafana<0:7.5.15-3.el8
0:7.5.15-3.el8
redhat/grafana<0:7.5.15-3.el9
0:7.5.15-3.el9
redhat/sanitize-url<6.0.0
6.0.0
IBM Data Virtualization on Cloud Pak for Data<=3.0
IBM Watson Query on Cloud Pak for Data<=2.2
IBM Watson Query on Cloud Pak for Data<=2.1
IBM Watson Query on Cloud Pak for Data<=2.0
IBM Data Virtualization on Cloud Pak for Data<=1.8
IBM Data Virtualization on Cloud Pak for Data<=1.7
Paypal Braintree\/sanitize-url Node.js<6.0.0
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Fedoraproject Fedora=36

Event History

Feb 22, 2022
CVE Published
12:00 AM
Mar 16, 2022
CVE Published
via MITRE·03:45 PM
Data Sourced
via MITRE·03:45 PM
DescriptionSeverityWeakness
Aug 15, 2025
Data Sourced
via IBM·03:29 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-23648?

CVE-2021-23648 is a vulnerability in the sanitize-url package that allows for cross-site scripting (XSS) attacks.

2

What is the severity of CVE-2021-23648?

CVE-2021-23648 has a severity rating of 6.1, which is considered medium.

3

How does CVE-2021-23648 impact sanitize-url?

CVE-2021-23648 allows attackers to perform cross-site scripting (XSS) attacks through the sanitizeUrl function in sanitize-url.

4

What is the remedy for CVE-2021-23648?

The remedy for CVE-2021-23648 is to upgrade to version 6.0.0 of the sanitize-url package.

5

Where can I find more information about CVE-2021-23648?

You can find more information about CVE-2021-23648 in the bug reports on Bugzilla and the pull request on GitHub.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203