~ / search / GHSA-2mm9-c2fx-c7m4

GHSA-2mm9-c2fx-c7m4

Docsify XSS Vulnerability

Source: GitHub Advisory Database (reviewed) Moderate CVE-2021-23342

Packages

EcosystemPackageAffectedFixed in
npm docsify < 4.12.0 4.12.0

Details

As written in the advisory (Markdown source, shown as plain text).

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

References

External links from the advisory. They lead to third-party sites.