PT-2020-19703 · Docsify · Docsify

Published

2020-07-20

·

Updated

2021-05-18

·

CVE-2020-7680

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions docsify versions prior to 4.11.4
Description The issue is related to Cross-site Scripting (XSS) and occurs due to the lack of validation in fragment identifiers used by docsify.js to load resources from server-side .md files. This allows an attacker to provide external URLs after the /#/ and render arbitrary JavaScript/HTML inside a docsify page. For example, an attacker could use a URL like 'domain.com/#//attacker.com' to exploit this issue.
Recommendations For versions prior to 4.11.4, update to version 4.11.4 or later to resolve the issue. As a temporary workaround, consider restricting access to the /#/ endpoint to minimize the risk of exploitation. Avoid using external URLs after the /#/ in docsify pages 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

CVE-2020-7680
GHSA-QPQH-46QJ-VWCW
SNYK-JS-DOCSIFY-567099

Affected Products

Docsify