CVE-2021-23342 Cross-site Scripting (XSS)
MediumCVSS 6.1
EPSS 1.7%
Public exploit
- Published
- Updated
- Exploit status
- Public exploit available
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
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| docsifyjs docsify | < 4.12.0 | 4.12.0 | Fixed |
| npm docsify(npm) | < 4.12.0 | 4.12.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm docsify(npm) | < 4.12.0 | 4.12.0 |
| docsifyjs docsify | < 4.12.0 | 4.12.0 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- snyk.io exploit third-party-advisory
- snyk.io exploit third-party-advisory
- www.npmjs.com
- packetstormsecurity.com exploit third-party-advisory
- 20210219 [KIS-2021-02] docsify <= 4.11.6 DOM-based Cross-Site Scripting Vulnerability mailing-list third-party-advisory
- github.com