{"id":"CVE-2021-25987","published":"2021-11-30T13:50:09Z","modified":"2025-04-30T15:44:20Z","title":"Hexo - Stored XSS","vendor":"Hexo","product":"Hexo","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00339,"percentile":0.28047,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/hexojs/hexo/commit/5170df2d3fa9c69e855c4b7c2b084ebfd92d5200","tags":["x_refsource_MISC"]},{"url":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25987","tags":["x_refsource_MISC"]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":5.61},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"hexo","affectedVersions":[{"vendor":"Hexo","product":"Hexo","versions":[">= unspecified, <= 5.4.0",">= next of 0.0.1, < unspecified"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-30T15:27:36.786568Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"hexo","vulnerableRanges":[">=0.0.1, <6.0.0"],"patched":["6.0.0"],"from":["GHSA-q54r-r9pr-w7qv"],"provenance":"source"}],"summary":{"text":"The Hexo static site generator (versions 0.0.1 through 5.4.0) fails to sanitise malicious JavaScript in post body and tags fields during web page generation, creating a stored cross-site scripting flaw. A local, unprivileged attacker who can write post content can inject arbitrary script that executes when a user interacts with the generated page, with the impact limited to confidentiality and integrity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:55Z"},"euvd":{"id":"EUVD-2021-2565","exploited":false,"provenance":"source"}}