Vulnerability · Published Nov 30, 2021 · Assigned by Mend

CVE-2021-25987Hexo - Stored XSS

Medium 5.0

In plain English

A medium-severity cross-site scripting in Hexo from Hexo. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.0Medium
Exploit odds (30 days)0.3%top 72.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npmhexo6.0.0GHSA-q54r-r9pr-w7qv

Affected products (as reported)

VendorProductVersions
Hexo Hexo unspecified – through 5.4.0next of 0.0.1 – before unspecified

Weakness: CWE-79 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References