VDB
Sign up
MEDIUM6.1

GHSA-2mm9-c2fx-c7m4

Docsify XSS Vulnerability

Quick fix

GHSA-2mm9-c2fx-c7m4 — docsify: upgrade to the fixed version with the command below.

npm install docsify@4.12.0

Details

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

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/docsify
Introduced in: 0Fixed in: 4.12.0
Fixnpm install docsify@4.12.0

References