CVE-2021-23342
Last modified
CVE-2021-23342 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 1.66% chance of exploitation in the next 30 days.
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
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Docsifyjs | Docsify | < 4.12.0 |
References
- http://packetstormsecurity.com/files/161495/docsify-4.11.6-Cross-Site-Scripting.htmlExploit, Third Party Advisory
- http://seclists.org/fulldisclosure/2021/Feb/71Mailing List, Third Party Advisory
- https://github.com/docsifyjs/docsify/commit/ff2a66f12752471277fe81a64ad6c4b2c08111fePatch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076593Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-DOCSIFY-1066017Exploit, Third Party Advisory
- http://packetstormsecurity.com/files/161495/docsify-4.11.6-Cross-Site-Scripting.htmlExploit, Third Party Advisory
- http://seclists.org/fulldisclosure/2021/Feb/71Mailing List, Third Party Advisory
- https://github.com/docsifyjs/docsify/commit/ff2a66f12752471277fe81a64ad6c4b2c08111fePatch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076593Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-DOCSIFY-1066017Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-23342?
How severe is CVE-2021-23342?
How do I fix CVE-2021-23342?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-23337Lodash versions prior to 4.17.21 are vulnerable to Command I…7.2
- CVE-2021-23338This affects all versions of package qlib. The workflow func…7.2
- CVE-2021-23339This affects all versions before 10.1.14 and from 10.2.0 to …6.5
- CVE-2021-2334Vulnerability in the Oracle Database - Enterprise Edition Da…3.5
- CVE-2021-23340This affects the package pimcore/pimcore before 6.8.8. A Loc…7.1
- CVE-2021-23341The package prismjs before 1.23.0 are vulnerable to Regular …7.5
- CVE-2021-23343All versions of package path-parse are vulnerable to Regular…7.5
- CVE-2021-23344The package total.js before 3.4.8 are vulnerable to Remote C…9.8
- CVE-2021-23345All versions of package github.com/thecodingmachine/gotenber…5.3
- CVE-2021-23346This affects the package html-parse-stringify before 2.0.1; …5.3
- CVE-2021-23347The package github.com/argoproj/argo-cd/cmd before 1.7.13, f…4.8
- CVE-2021-23348This affects the package portprocesses before 1.0.5. If (att…8.8
Are you affected by CVE-2021-23342?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
