Vulnerability record · CVE-2021-25987 · published 30 November 2021
CVE-2021-25987: Hexo cross-site scripting vulnerability
Hexo · Hexo
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.
Description
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.
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/hexojs/hexo/commit/5170df2d3fa9c69e855c4b7c2b084ebfd92d5200 | PatchThird Party Advisory |
| https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25987 | Third Party Advisory |
| https://github.com/hexojs/hexo/commit/5170df2d3fa9c69e855c4b7c2b084ebfd92d5200 | PatchThird Party Advisory |
| https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25987 | Third Party Advisory |
Track CVE-2021-25987 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-25987), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.