{"id":"CVE-2021-25987","aliases":["CVE-2021-25987","GHSA-q54r-r9pr-w7qv"],"related":[],"kind":"vulnerability","state":"published","title":"Hexo - Stored XSS","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-11-30T13:50:09.000Z","modified":"2026-06-17T03:42:44.230Z","severity":{"scorer":"Mend","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"Mend","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:M/Au:N/C:N/I:P/A:N","score":1.9,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"5.4.0","status":"affected"},{"type":"custom","introduced":"next of 0.0.1","fixed":"unspecified","status":"affected"}],"vendor":"Hexo","product":"Hexo","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.0.1","status":"affected","fixed":"6.0.0"}],"ecosystem":"npm","package":"hexo","purl":"pkg:npm/hexo","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.0.1","lastAffected":"5.4.0"}],"vendor":"hexo","product":"hexo","cpe":"cpe:2.3:a:hexo:hexo:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/hexojs/hexo/commit/5170df2d3fa9c69e855c4b7c2b084ebfd92d5200","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25987","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25987","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/hexojs/hexo/issues/4838","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/hexojs/hexo/pull/4750","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/hexojs/hexo","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"Mend","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-30T15:27:36.786Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-25987","url":"https://www.cve.org/CVERecord?id=CVE-2021-25987","licence":"CVE Terms of Use","modified":"2025-04-30T15:44:20.648Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q54r-r9pr-w7qv","url":"https://github.com/advisories/GHSA-q54r-r9pr-w7qv","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:19.860Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25987","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25987","licence":"Public domain","modified":"2026-06-17T03:42:44.230Z"}],"updatedAt":"2026-11-25T22:58:05.779Z","epss":{"score":0.00339,"percentile":0.29323,"date":"2026-12-01T12:00:22.000Z"}}