Live threats

All CVEs / Hexo

CVE-2021-25987Hexo

Medium 4.6

Priority
28
CVSS 3.1
4.6
EPSS
0.3%
probability of exploitation in 30 days · percentile 29
Auth required
Yes
Published
Nov 30, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hexo.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm hexo ≥ 0.0.1 < 6.0.0 6.0.0 npm install hexo@6.0.0

Per OSV / GitHub Advisories (GHSA-q54r-r9pr-w7qv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
hexohexo≥ 0.0.1 ≤ 5.4.0

Official sources

References

Links published by the sources. Open them with care.