CVE-2021-23342
MEDIUM 6.1CVSS 3.1Docsify XSS Vulnerability
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
- Published
- 19 Feb 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-2mm9-c2fx-c7m4
- Sources
- NVDJSONOSV GHSA-2mm9-c2fx-c7m4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
| 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 |
| OSV | GitHub | 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 | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | docsifyjs | docsifycpe:2.3:a:docsifyjs:docsify:*:*:*:*:*:*:*:* |
< 4.12.0 | 4.12.0 |
| OSV | npm | docsify | < 4.12.0 | 4.12.0 |
References
- http://packetstormsecurity.com/files/161495/docsify-4.11.6-Cross-Site-Scripting.html · Exploit, Third Party Advisory, WEB
- http://seclists.org/fulldisclosure/2021/Feb/71 · Mailing List, Third Party Advisory, WEB
- https://github.com/docsifyjs/docsify/commit/ff2a66f12752471277fe81a64ad6c4b2c08111fe · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076593 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-DOCSIFY-1066017 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23342 · ADVISORY
- https://www.npmjs.com/package/docsify · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 19 Feb 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 1 Mar 2021)