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
2024-05-19T02:23:54.523225Z
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"
    ],
    "severity": "MODERATE",
    "nvd_published_at": "2020-07-20T16:15:00Z",
    "github_reviewed_at": "2021-05-10T21:00:22Z",
    "github_reviewed": true
}
References

Affected packages

npm / docsify

Package

Affected ranges

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