Hexo - Stored XSS
Priority MEDIUM 56CWE-79Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00339 27th percentileScored 2026-11-07
Fix Fixed hexo (npm): 6.0.0
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Hexo | Hexo | up to 5.4.0; next of 0.0.1 and later | — | No fix listed | CNA |
| — | hexo (npm) | 0.0.1 to before 6.0.0 | 6.0.0 | Patch available | GHSA-q54r-r9pr-w7qv |
- Hexo VendorHexo Affected up to 5.4.0; next of 0.0.1 and later Fixed in — No fix listed CNA
- hexo (npm) Vendor— Affected 0.0.1 to before 6.0.0 Fixed in 6.0.0 Patch available GHSA-q54r-r9pr-w7qv
Remediation
- Fix · GHSA-q54r-r9pr-w7qv hexo (npm) Fixed in 6.0.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-25987
- 2026-10-03 Alias added: GHSA-q54r-r9pr-w7qv
References
Advisory 2
More Hexo vulnerabilities
- TI-2023-20692 Hexo up to v7.0.0 (RC2) was discovered to contain an arbitrary file read vulnerability. CVSS 3.1HIGH 7.5
Sources
- CVE-2021-25987 · CVE Program
- CVE-2021-25987 · NVD
- FIRST EPSS
- GHSA-q54r-r9pr-w7qv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences