CVE-2021-23648
Cross-site Scripting (XSS)
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
5.4
Cross-site Scripting (XSS)
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
- Record
CVE-2021-23648- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P - Updated
- 2026-11-02
EUVDEUVD-2022-1445
5.4
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
- Record
EUVD-2022-1445- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-hqq7-2q2v-82xq
5.4
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.
- Record
GHSA-hqq7-2q2v-82xq- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
NVD
5.4
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
- Record
CVE-2021-23648- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
6.1
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
- Record
CVE-2021-23648- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-23648
6.1
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
- Record
DEBIAN-CVE-2021-23648- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
Show 8 moreShow less
OSVGHSA-hqq7-2q2v-82xq
5.4
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.
- Record
GHSA-hqq7-2q2v-82xq- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVRHSA-2022:7519
7.5
Red Hat Security Advisory: grafana security, bug fix, and enhancement update
- Record
RHSA-2022:7519- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2022:8057
7.5
Red Hat Security Advisory: grafana security, bug fix, and enhancement update
- Record
RHSA-2022:8057- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRLSA-2022:7519
7.5
Moderate: grafana security, bug fix, and enhancement update
Grafana is an open source, feature rich metrics dashboard and graph editor for Graphite, InfluxDB & OpenTSDB.
The following packages have been upgraded to a later upstream version: grafana (7.5.15). (BZ#2055348)
Security Fix(es):
-
sanitize-url: XSS due to improper sanitization in sanitizeUrl function (CVE-2021-23648)
-
golang: net/http: improper sanitization of Transfer-Encoding header (CVE-2022-1705)
-
golang: go/parser: stack exhaustion in all Parse* functions (CVE-2022-1962)
-
grafana: Forward OAuth Identity Token can allow users to access some data sources (CVE-2022-21673)
-
prometheus/client_golang: Denial of service using InstrumentHandlerCounter (CVE-2022-21698)
-
grafana: XSS vulnerability in data source handling (CVE-2022-21702)
-
grafana: CSRF vulnerability can lead to privilege escalation (CVE-2022-21703)
-
grafana: IDOR vulnerability can lead to information disclosure (CVE-2022-21713)
-
golang: encoding/xml: stack exhaustion in Decoder.Skip (CVE-2022-28131)
-
golang: io/fs: stack exhaustion in Glob (CVE-2022-30630)
-
golang: compress/gzip: stack exhaustion in Reader.Read (CVE-2022-30631)
-
golang: path/filepath: stack exhaustion in Glob (CVE-2022-30632)
-
golang: encoding/xml: stack exhaustion in Unmarshal (CVE-2022-30633)
-
golang: encoding/gob: stack exhaustion in Decoder.Decode (CVE-2022-30635)
-
golang: net/http/httputil: NewSingleHostReverseProxy - omit X-Forwarded-For not working (CVE-2022-32148)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 8.7 Release Notes linked from the References section.
- Record
RLSA-2022:7519- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRLSA-2022:8057
7.5
Important: grafana security, bug fix, and enhancement update
Grafana is an open source, feature rich metrics dashboard and graph editor for Graphite, InfluxDB & OpenTSDB.
The following packages have been upgraded to a later upstream version: grafana (7.5.15). (BZ#2055349)
Security Fix(es):
-
sanitize-url: XSS due to improper sanitization in sanitizeUrl function (CVE-2021-23648)
-
golang: net/http: improper sanitization of Transfer-Encoding header (CVE-2022-1705)
-
golang: go/parser: stack exhaustion in all Parse* functions (CVE-2022-1962)
-
grafana: Forward OAuth Identity Token can allow users to access some data sources (CVE-2022-21673)
-
prometheus/client_golang: Denial of service using InstrumentHandlerCounter (CVE-2022-21698)
-
grafana: XSS vulnerability in data source handling (CVE-2022-21702)
-
grafana: CSRF vulnerability can lead to privilege escalation (CVE-2022-21703)
-
grafana: IDOR vulnerability can lead to information disclosure (CVE-2022-21713)
-
golang: encoding/xml: stack exhaustion in Decoder.Skip (CVE-2022-28131)
-
golang: io/fs: stack exhaustion in Glob (CVE-2022-30630)
-
golang: compress/gzip: stack exhaustion in Reader.Read (CVE-2022-30631)
-
golang: path/filepath: stack exhaustion in Glob (CVE-2022-30632)
-
golang: encoding/xml: stack exhaustion in Unmarshal (CVE-2022-30633)
-
golang: encoding/gob: stack exhaustion in Decoder.Decode (CVE-2022-30635)
-
golang: net/http/httputil: NewSingleHostReverseProxy - omit X-Forwarded-For not working (CVE-2022-32148)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 9.1 Release Notes linked from the References section.
- Record
RLSA-2022:8057- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-23648
5.4
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
- Record
UBUNTU-CVE-2021-23648- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVALSA-2022:7519 No score
Moderate: grafana security, bug fix, and enhancement update
Grafana is an open source, feature rich metrics dashboard and graph editor for Graphite, InfluxDB & OpenTSDB.
The following packages have been upgraded to a later upstream version: grafana (7.5.15). (BZ#2055348)
Security Fix(es):
- sanitize-url: XSS due to improper sanitization in sanitizeUrl function (CVE-2021-23648)
- golang: net/http: improper sanitization of Transfer-Encoding header (CVE-2022-1705)
- golang: go/parser: stack exhaustion in all Parse* functions (CVE-2022-1962)
- grafana: Forward OAuth Identity Token can allow users to access some data sources (CVE-2022-21673)
- prometheus/client_golang: Denial of service using InstrumentHandlerCounter (CVE-2022-21698)
- grafana: XSS vulnerability in data source handling (CVE-2022-21702)
- grafana: CSRF vulnerability can lead to privilege escalation (CVE-2022-21703)
- grafana: IDOR vulnerability can lead to information disclosure (CVE-2022-21713)
- golang: encoding/xml: stack exhaustion in Decoder.Skip (CVE-2022-28131)
- golang: io/fs: stack exhaustion in Glob (CVE-2022-30630)
- golang: compress/gzip: stack exhaustion in Reader.Read (CVE-2022-30631)
- golang: path/filepath: stack exhaustion in Glob (CVE-2022-30632)
- golang: encoding/xml: stack exhaustion in Unmarshal (CVE-2022-30633)
- golang: encoding/gob: stack exhaustion in Decoder.Decode (CVE-2022-30635)
- golang: net/http/httputil: NewSingleHostReverseProxy - omit X-Forwarded-For not working (CVE-2022-32148)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2022:7519- Updated
- 2026-11-02
OSVALSA-2022:8057 No score
Important: grafana security, bug fix, and enhancement update
Grafana is an open source, feature rich metrics dashboard and graph editor for Graphite, InfluxDB & OpenTSDB.
The following packages have been upgraded to a later upstream version: grafana (7.5.15). (BZ#2055349)
Security Fix(es):
- sanitize-url: XSS due to improper sanitization in sanitizeUrl function (CVE-2021-23648)
- golang: net/http: improper sanitization of Transfer-Encoding header (CVE-2022-1705)
- golang: go/parser: stack exhaustion in all Parse* functions (CVE-2022-1962)
- grafana: Forward OAuth Identity Token can allow users to access some data sources (CVE-2022-21673)
- prometheus/client_golang: Denial of service using InstrumentHandlerCounter (CVE-2022-21698)
- grafana: XSS vulnerability in data source handling (CVE-2022-21702)
- grafana: CSRF vulnerability can lead to privilege escalation (CVE-2022-21703)
- grafana: IDOR vulnerability can lead to information disclosure (CVE-2022-21713)
- golang: encoding/xml: stack exhaustion in Decoder.Skip (CVE-2022-28131)
- golang: io/fs: stack exhaustion in Glob (CVE-2022-30630)
- golang: compress/gzip: stack exhaustion in Reader.Read (CVE-2022-30631)
- golang: path/filepath: stack exhaustion in Glob (CVE-2022-30632)
- golang: encoding/xml: stack exhaustion in Unmarshal (CVE-2022-30633)
- golang: encoding/gob: stack exhaustion in Decoder.Decode (CVE-2022-30635)
- golang: net/http/httputil: NewSingleHostReverseProxy - omit X-Forwarded-For not working (CVE-2022-32148)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2022:8057- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
@braintree/sanitize-urlnpm |
before 6.0.0 | 6.0.0 |
grafanaAlmaLinux:8 |
before 7.5.15-3.el8 | 7.5.15-3.el8 |
grafanaAlmaLinux:9 |
before 7.5.15-3.el9 | 7.5.15-3.el9 |
node-mermaidDebian:14 |
before 8.14.0+~cs11.4.14-1, plus listed versions 8.11.0+ds+~cs29.13.22-18.13.2+ds+~cs30.13.21-18.13.2+ds+~cs30.13.21-1.18.13.3+ds+~cs26.13.21-18.13.3+ds+~cs26.13.21-2 Show 7 moreShow less8.13.8+~cs10.4.16-18.7.0+ds+~cs27.17.17-18.7.0+ds+~cs27.17.17-28.7.0+ds+~cs27.17.17-2~bpo10+18.7.0+ds+~cs27.17.17-38.9.1+ds+~cs26.20.25-18.9.3+ds+~cs29.13.19-1 |
8.14.0+~cs11.4.14-1 |
grafanaRed Hat:enterprise_linux:8::appstream |
before 0:7.5.15-3.el8 | 0:7.5.15-3.el8 |
grafana-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:7.5.15-3.el8 | 0:7.5.15-3.el8 |
grafanaRed Hat:enterprise_linux:9::appstream |
before 0:7.5.15-3.el9 | 0:7.5.15-3.el9 |
grafana-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:7.5.15-3.el9 | 0:7.5.15-3.el9 |
grafanaRocky Linux:8 |
before 0:7.5.15-3.el8 | 0:7.5.15-3.el8 |
grafanaRocky Linux:9 |
before 0:7.5.15-3.el9 | 0:7.5.15-3.el9 |
node-mermaidUbuntu:22.04:LTS |
All versions, plus listed versions 8.7.0+ds+~cs27.17.17-38.13.3+ds+~cs26.13.21-18.13.3+ds+~cs26.13.21-28.13.8+~cs10.4.16-1 |
None known |
node-mermaidUbuntu:26.10 |
All versions, plus listed versions 9.2.2+~2.0.0-19.2.2+~2.0.0-2 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-23648 is a medium vulnerability (CVSS 5.4) in Fedoraproject Fedora, published March 16, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.43%, the 73rd percentile. Fixed in @braintree/sanitize-url 6.0.0.
References
snyk.io/vuln/SNYK-JS-BRAINTREESANITIZEURL-2339882
github.com/braintree/sanitize-url/blob/main/src/index.ts%23L11
github.com/braintree/sanitize-url/pull/40
github.com/braintree/sanitize-url/pull/40/commits/e5afda45d9833682b705f73fc2c1265d34832183
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D
Show 113 moreShow less
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH
nvd.nist.gov/vuln/detail/CVE-2021-23648
lists.fedoraproject.org/archives/list/[email protected]/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D
lists.fedoraproject.org/archives/list/[email protected]/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ
lists.fedoraproject.org/archives/list/[email protected]/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH
github.com/advisories/GHSA-hqq7-2q2v-82xq
access.redhat.com/errata/RHSA-2022:7519
access.redhat.com/security/cve/CVE-2021-23648
access.redhat.com/security/cve/CVE-2022-1705
access.redhat.com/security/cve/CVE-2022-1962
access.redhat.com/security/cve/CVE-2022-21673
access.redhat.com/security/cve/CVE-2022-21698
access.redhat.com/security/cve/CVE-2022-21702
access.redhat.com/security/cve/CVE-2022-21703
access.redhat.com/security/cve/CVE-2022-21713
access.redhat.com/security/cve/CVE-2022-28131
access.redhat.com/security/cve/CVE-2022-30630
access.redhat.com/security/cve/CVE-2022-30631
access.redhat.com/security/cve/CVE-2022-30632
access.redhat.com/security/cve/CVE-2022-30633
access.redhat.com/security/cve/CVE-2022-30635
access.redhat.com/security/cve/CVE-2022-32148
bugzilla.redhat.com/2044628
bugzilla.redhat.com/2045880
bugzilla.redhat.com/2050648
bugzilla.redhat.com/2050742
bugzilla.redhat.com/2050743
bugzilla.redhat.com/2065290
bugzilla.redhat.com/2107342
bugzilla.redhat.com/2107371
bugzilla.redhat.com/2107374
bugzilla.redhat.com/2107376
bugzilla.redhat.com/2107383
bugzilla.redhat.com/2107386
bugzilla.redhat.com/2107388
bugzilla.redhat.com/2107390
bugzilla.redhat.com/2107392
errata.almalinux.org/8/ALSA-2022-7519.html
access.redhat.com/errata/RHSA-2022:8057
errata.almalinux.org/9/ALSA-2022-8057.html
security-tracker.debian.org/tracker/CVE-2021-23648
github.com/braintree/sanitize-url
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.7_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=2044628
bugzilla.redhat.com/show_bug.cgi?id=2045880
bugzilla.redhat.com/show_bug.cgi?id=2050648
bugzilla.redhat.com/show_bug.cgi?id=2050742
bugzilla.redhat.com/show_bug.cgi?id=2050743
bugzilla.redhat.com/show_bug.cgi?id=2055348
bugzilla.redhat.com/show_bug.cgi?id=2065290
bugzilla.redhat.com/show_bug.cgi?id=2107342
bugzilla.redhat.com/show_bug.cgi?id=2107371
bugzilla.redhat.com/show_bug.cgi?id=2107374
bugzilla.redhat.com/show_bug.cgi?id=2107376
bugzilla.redhat.com/show_bug.cgi?id=2107383
bugzilla.redhat.com/show_bug.cgi?id=2107386
bugzilla.redhat.com/show_bug.cgi?id=2107388
bugzilla.redhat.com/show_bug.cgi?id=2107390
bugzilla.redhat.com/show_bug.cgi?id=2107392
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_7519.json
cve.org/CVERecord?id=CVE-2021-23648
cve.org/CVERecord?id=CVE-2022-1705
nvd.nist.gov/vuln/detail/CVE-2022-1705
go.dev/issue/53188
groups.google.com/g/golang-announce/c/nqrv9fbR0zE
cve.org/CVERecord?id=CVE-2022-1962
nvd.nist.gov/vuln/detail/CVE-2022-1962
go.dev/issue/53616
cve.org/CVERecord?id=CVE-2022-21673
nvd.nist.gov/vuln/detail/CVE-2022-21673
grafana.com/blog/2022/01/18/grafana-8.3.4-and-7.5.13-released-with-important-security-fix
cve.org/CVERecord?id=CVE-2022-21698
nvd.nist.gov/vuln/detail/CVE-2022-21698
github.com/prometheus/client_golang/security/advisories/GHSA-cg3q-j54f-5p7p
cve.org/CVERecord?id=CVE-2022-21702
nvd.nist.gov/vuln/detail/CVE-2022-21702
github.com/grafana/grafana/security/advisories/GHSA-xc3p-28hw-q24g
grafana.com/blog/2022/02/08/grafana-7.5.15-and-8.3.5-released-with-moderate-severity-security-fixes
cve.org/CVERecord?id=CVE-2022-21703
nvd.nist.gov/vuln/detail/CVE-2022-21703
github.com/grafana/grafana/security/advisories/GHSA-cmf4-h3xc-jw8w
cve.org/CVERecord?id=CVE-2022-21713
nvd.nist.gov/vuln/detail/CVE-2022-21713
github.com/grafana/grafana/security/advisories/GHSA-63g3-9jq3-mccv
cve.org/CVERecord?id=CVE-2022-28131
nvd.nist.gov/vuln/detail/CVE-2022-28131
go.dev/issue/53614
cve.org/CVERecord?id=CVE-2022-30630
nvd.nist.gov/vuln/detail/CVE-2022-30630
go.dev/issue/53415
cve.org/CVERecord?id=CVE-2022-30631
nvd.nist.gov/vuln/detail/CVE-2022-30631
go.dev/issue/53168
cve.org/CVERecord?id=CVE-2022-30632
nvd.nist.gov/vuln/detail/CVE-2022-30632
go.dev/issue/53416
cve.org/CVERecord?id=CVE-2022-30633
nvd.nist.gov/vuln/detail/CVE-2022-30633
go.dev/issue/53611
cve.org/CVERecord?id=CVE-2022-30635
nvd.nist.gov/vuln/detail/CVE-2022-30635
go.dev/issue/53615
cve.org/CVERecord?id=CVE-2022-32148
nvd.nist.gov/vuln/detail/CVE-2022-32148
go.dev/issue/53423
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.1_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=2055349
bugzilla.redhat.com/show_bug.cgi?id=2104367
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_8057.json
errata.rockylinux.org/RLSA-2022:7519
errata.rockylinux.org/RLSA-2022:8057
ubuntu.com/security/CVE-2021-23648