CVE-2021-30074
MEDIUM 6.1CVSS 3.1Docsify vulnerable to cross-site scripting due to mishandled encoding
docsify 4.12.1 is affected by Cross Site Scripting (XSS) because the search component does not appropriately encode Code Blocks and mishandles the " character.
- Published
- 2 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-5h7x-68wj-jhwc
- Sources
- NVDJSONOSV GHSA-5h7x-68wj-jhwcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | docsifyjs | docsifycpe:2.3:a:docsifyjs:docsify:4.12.1:*:*:*:*:*:*:* |
= 4.12.1 | |
| OSV | npm | docsify | < 4.12.2 | 4.12.2 |
References
- https://github.com/docsifyjs/docsify/issues/1549 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-30074 · ADVISORY
- https://github.com/docsifyjs/docsify/pull/1551 · WEB
- https://github.com/docsifyjs/docsify/commit/c24f7f6f0b87a87f6dd3755f69eb0969ebb029c9 · WEB
- https://github.com/docsifyjs/docsify · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 2 Apr 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 24 May 2022)