GHSA-5h7x-68wj-jhwc

Suggest an improvement
Source
https://github.com/advisories/GHSA-5h7x-68wj-jhwc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-5h7x-68wj-jhwc/GHSA-5h7x-68wj-jhwc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5h7x-68wj-jhwc
Aliases
Published
2022-05-24T17:46:27Z
Modified
2023-11-08T04:05:44.435042Z
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
Docsify vulnerable to cross-site scripting due to mishandled encoding
Details

docsify versions 4.12.1 and earlier are vulnerable to cross-site scripting (XSS) because the search component does not appropriately encode Code Blocks and mishandles the " character.

Database specific
{
    "github_reviewed_at": "2023-10-19T18:36:33Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "nvd_published_at": "2021-04-02T21:15:00Z",
    "severity": "MODERATE",
    "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.12.2

Database specific

{
    "last_known_affected_version_range": "<= 4.12.1"
}