5.0medium
Hexo - Stored XSS
- Severity
- 5.0medium CVSS:3.1 by Mend
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Mend
- Also known as
- GHSA-q54r-r9pr-w7qv
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Hexo Hexo | from unspecified up to 5.4.0, from next of 0.0.1 before unspecified, from 0.0.1 up to 5.4.0 | CVE List, NVD |
| hexo (npm) | from 0.0.1 before 6.0.0 | GitHub Advisory Database |
All scores
| Mend | 5.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 4.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 1.9low CVSS:2.0 | AV:L/AC:M/Au:N/C:N/I:P/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Hexo versiones 0.0.1 a 5.4.0, son vulnerables a un ataque de tipo XSS almacenado. Los post "body" y "tags" no sanean el javascript malicioso durante la generación de la página web. Un atacante local no privilegiado puede inyectar código arbitrario
References
| https://github.com/hexojs/hexo/commit/5170df2d3fa9c69e855c4b7c2b084ebfd92d5200 | patch, third-party-advisory, web | |
| https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25987 | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-25987 | advisory | |
| https://github.com/hexojs/hexo/issues/4838 | web | |
| https://github.com/hexojs/hexo/pull/4750 | web | |
| https://github.com/hexojs/hexo | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-25987 changed 2025-04-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q54r-r9pr-w7qv changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-25987 changed 2026-06-17 | Public domain |