medium6.1
CVE-2021-30074
Docsify vulnerable to cross-site scripting due to mishandled encoding
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | docsify | <= 4.12.1 | 4.12.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Docsifyjs | Docsify | Version 4.12.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/docsifyjs/docsify/issues/1549
- https://github.com/advisories/GHSA-5h7x-68wj-jhwc
- https://nvd.nist.gov/vuln/detail/CVE-2021-30074
- https://github.com/docsifyjs/docsify/pull/1551
- https://github.com/docsifyjs/docsify/commit/c24f7f6f0b87a87f6dd3755f69eb0969ebb029c9