CVE-2021-25987Hexo
Medium 4.6
Follow: this CVE · Hexo · Hexo We alert you by email or Slack (account required).
- Priority
- 28
- CVSS 3.1
- 4.6
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 29
- Auth required
- Yes
- Published
- Nov 30, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
Hexo versions 0.0.1 to 5.4.0 are vulnerable against stored XSS. The post “body” and “tags” don’t sanitize malicious javascript during web page generation. Local unprivileged attacker can inject arbitrary code.
What to do
- Apply the vendor's security update for Hexo.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | hexo |
≥ 0.0.1 < 6.0.0 |
6.0.0 |
npm install hexo@6.0.0 |
Per OSV / GitHub Advisories (GHSA-q54r-r9pr-w7qv). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| hexo | hexo | ≥ 0.0.1 ≤ 5.4.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- www.whitesourcesoftware.com Third Party Advisory