{"id":"GHSA-q54r-r9pr-w7qv","summary":"Hexo Vulnerable to XSS","details":"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.","aliases":["CVE-2021-25987"],"modified":"2023-11-08T04:05:19.860339Z","published":"2021-12-01T18:27:44Z","database_specific":{"nvd_published_at":"2021-11-30T14:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-12-01T16:15:32Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25987"},{"type":"WEB","url":"https://github.com/hexojs/hexo/issues/4838"},{"type":"WEB","url":"https://github.com/hexojs/hexo/pull/4750"},{"type":"WEB","url":"https://github.com/hexojs/hexo/commit/5170df2d3fa9c69e855c4b7c2b084ebfd92d5200"},{"type":"PACKAGE","url":"https://github.com/hexojs/hexo"},{"type":"WEB","url":"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25987"}],"affected":[{"package":{"name":"hexo","ecosystem":"npm","purl":"pkg:npm/hexo"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.1"},{"fixed":"6.0.0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 5.4.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-q54r-r9pr-w7qv/GHSA-q54r-r9pr-w7qv.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}