GHSA-qpqh-46qj-vwcw

Suggest an improvement
Source
https://github.com/advisories/GHSA-qpqh-46qj-vwcw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-qpqh-46qj-vwcw/GHSA-qpqh-46qj-vwcw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qpqh-46qj-vwcw
Aliases
Published
2021-05-18T01:53:18Z
Modified
2026-09-10T03:49:14Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Cross-site Scripting in docsify
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-05-10T21:00:22Z",
    "nvd_published_at":  "2020-07-20T16:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / docsify

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.11.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-qpqh-46qj-vwcw/GHSA-qpqh-46qj-vwcw.json"