CVE-2021-23342
Docsifyjs Docsify 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
Affected products
Docsify. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Docsifyjs Docsify runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/docsifyjs/docsify/commit/ff2a66f12752471277fe81a64ad6c4b2c08111fe · Patch
- packetstormsecurity.com/files/161495/docsify-4.11.6-Cross-Site-Scripting.html · Exploit
- seclists.org/fulldisclosure/2021/Feb/71 · Third Party Advisory
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076593 · Exploit
- snyk.io/vuln/SNYK-JS-DOCSIFY-1066017 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2021-23342
- cve.org/CVERecord?id=CVE-2021-23342
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.