CVE-2021-23342
published high CVSS 3.1 · 8.6Cross-site Scripting (XSS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | docsifyunspecified to < 4.12.0 | Affected | Not stated | snyk |
Description
This affects the package docsify before 4.12.0. It is possible to bypass the remediation done by CVE-2020-7680 and execute malicious JavaScript through the following methods 1) When parsing HTML from remote URLs, the HTML code on the main page is sanitized, but this sanitization is not taking place in the sidebar. 2) The isURL external check can be bypassed by inserting more “////” characters
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L/E:P/RL:U/RC:C
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | docsify | unspecified to < 4.12.0 (affected · custom) | snyk · cna |
Weaknesses
1- Cross-site Scripting (XSS)
References
5- http://packetstormsecurity.com/files/161495/docsify-4.11.6-Cross-Site-Scripting.html
- 20210219 [KIS-2021-02] docsify <= 4.11.6 DOM-based Cross-Site Scripting Vulnerability http://seclists.org/fulldisclosure/2021/Feb/71
- https://github.com/docsifyjs/docsify/commit/ff2a66f12752471277fe81a64ad6c4b2c08111fe
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076593
- https://snyk.io/vuln/SNYK-JS-DOCSIFY-1066017
Provider assertions
2snyk · cna
Cross-site Scripting (XSS)
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a0075578cb3686342cf2c0304aa4a79e880b36875bfdc54fda72733b38ff136e
- Ingested
- 23 Sep 2026, 07:52:52 UTC
- Source record
- Official CVE record