PT-2021-15446 · Docsify · Docsify
Egidio Romano
+2
·
Published
2021-02-19
·
Updated
2021-03-01
·
CVE-2021-23342
CVSS v3.1
8.6
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
docsify versions prior to 4.12.0
Description
The issue allows for the bypass of previous remediation efforts, enabling the execution of malicious JavaScript through two methods. Firstly, when parsing HTML from remote URLs, the main page's HTML code is sanitized, but this sanitization does not occur in the sidebar. Secondly, the
isURL external check can be bypassed by inserting additional //// characters.Recommendations
For versions prior to 4.12.0, update to version 4.12.0 or later to resolve the issue. As a temporary workaround, consider disabling the parsing of HTML from remote URLs or restricting the use of the sidebar until a patch is available. Avoid using the
isURL external check with URLs containing multiple //// characters until the issue is resolved.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Docsify