CVE-2021-25987
JSON

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 packageVersionsReported by
Hexo Hexofrom unspecified up to 5.4.0, from next of 0.0.1 before unspecified, from 0.0.1 up to 5.4.0CVE List, NVD
hexo (npm)from 0.0.1 before 6.0.0GitHub Advisory Database

All scores

Mend5.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub4.6medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD4.6medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD1.9low CVSS:2.0AV:L/AC:M/Au:N/C:N/I:P/A:N

Classification

CWE-79

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

Sources

SourceRecordLicence
CVE ListCVE-2021-25987 changed 2025-04-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-q54r-r9pr-w7qv changed 2023-11-08CC-BY-4.0
NVDCVE-2021-25987 changed 2026-06-17Public domain