CVE-2021-25987 json
Hexo - Stored XSS
published 2021-11-30 4 y ago modified 2026-06-17 4 mo ago also GHSA-q54r-r9pr-w7qv , EUVD-2021-2565
- cvss
- 5.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 27%
- public exploits
- 0
- none known
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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.34% chance of exploitation in the next 30 days, higher than 27% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.0 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 4.6 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 1.9 | AV:L/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 4.6 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | hexo | >=0.0.1, <6.0.0 |
6.0.0 |
Affected products
- Hexo Hexo
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/hexojs/hexo/commit/5170df2d3fa9c69e855c4b7c2b084ebfd92d5200
web, patch, third-party-advisory
-
github.com
/hexojs/hexo/pull/4750
web
-
whitesourcesoftware.com
/vulnerability-database/CVE-2021-25987
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-25987
advisory
-
github.com
/hexojs/hexo/issues/4838
web
-
github.com
/hexojs/hexo
package
Sources
- CVE List CVE-2021-25987
- GitHub Advisory GHSA-q54r-r9pr-w7qv
- NVD CVE-2021-25987
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.