Skip to content
OpenAdvisories
Medium · 6.1 Public exploit CVE-2020-7680 EUVD-2021-1169GHSA-qpqh-46qj-vwcwSNYK-JS-DOCSIFY-567099

Cross-site Scripting in docsify

Published Jul 20, 2020 · Updated Aug 4, 2024 · Assigned by snyk

Description

docsify prior to 4.11.4 is susceptible to Cross-site Scripting (XSS). Docsify.js uses fragment identifiers (parameters after # sign) to load resources from server-side .md files. Due to lack of validation here, it is possible to provide external URLs after the /#/ (domain.com/#//attacker.com) and render arbitrary JavaScript/HTML inside docsify page.

Affected products

VendorProductAffectedFixed
— docsify All versions prior to 4.11.4 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm docsify < 4.11.4 4.11.4 GHSA-qpqh-46qj-vwcw

References