{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-25987","id":"CVE-2021-25987","title":"Hexo - Stored XSS","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.","descriptionLong":"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.","published":"2021-11-30T13:50:09.000Z","updated":"2026-10-20T10:54:34.504135055Z","reserved":"2021-01-22T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"Mend","metric":{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"Mend"},"metrics":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"Mend"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"mend.io"},{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":1.9,"vector":"AV:L/AC:M/Au:N/C:N/I:P/A:N","rating":"low","source":"NVD"}],"rating":"medium","products":["Hexo"],"affectedProducts":[{"vendor":"Hexo","product":"Hexo","defaultStatus":null,"versions":[{"lessThanOrEqual":"5.4.0","status":"affected","version":"unspecified","versionType":"custom"},{"lessThan":"unspecified","status":"affected","version":"next of 0.0.1","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"hexo","purl":"pkg:npm/hexo","ranges":[">=0.0.1 <6.0.0"],"fixed":["6.0.0"],"advisory":"GHSA-q54r-r9pr-w7qv"}],"cwes":["CWE-79"],"aliases":["GHSA-q54r-r9pr-w7qv"],"references":[{"url":"https://github.com/hexojs/hexo/commit/5170df2d3fa9c69e855c4b7c2b084ebfd92d5200","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25987","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25987","tags":["advisory"]},{"url":"https://github.com/hexojs/hexo/issues/4838","tags":["web"]},{"url":"https://github.com/hexojs/hexo/pull/4750","tags":["web"]},{"url":"https://github.com/hexojs/hexo","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00339,"epssPercentile":0.27907,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-25987","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25987","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-25987","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-q54r-r9pr-w7qv","ok":true,"note":"GHSA-q54r-r9pr-w7qv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-25987","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}