Advisory

GHSA-2mm9-c2fx-c7m4

Also known as: CVE-2021-23342

Summary

Docsify XSS Vulnerability

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-03-01 19:44 UTC
Modified
2025-01-14 08:56 UTC

Affected packages and fixes

docsify

npm · All systems

Affected

  • introduced 0, fixed 4.12.0 (semver)

Fixed versions

4.12.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences