{"cve":"CVE-2021-25987","nvd":{"published":"2021-11-30T14:15:07.530","modified":"2026-06-17T03:42:44.230","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.6},"cwes":["CWE-79"],"references":["https://github.com/hexojs/hexo/commit/5170df2d3fa9c69e855c4b7c2b084ebfd92d5200","https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25987","https://github.com/hexojs/hexo/commit/5170df2d3fa9c69e855c4b7c2b084ebfd92d5200","https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25987"],"products":["hexo:hexo"],"source":"nvd","synced_at":"2026-10-19T21:25:41.256909649+00:00"},"epss":{"cve":"CVE-2021-25987","score":0.00339,"percentile":0.27374,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-q54r-r9pr-w7qv","url":"https://osv.dev/vulnerability/GHSA-q54r-r9pr-w7qv","summary":"Hexo Vulnerable to XSS","modified":"2023-11-08T04:05:19.860339Z","packages":[{"ecosystem":"npm","name":"hexo","purl":"pkg:npm/hexo","ranges":[">=0.0.1 <6.0.0"],"fixed":["6.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}