GitHub Advisoryadvisory · npm
GHSA-x2jc-989c-47q4 Hexo `include_code` has a path traversal
HIGH
Official page ↗
- Aliases
- CVE-2023-39584
- Ecosystem
- npm
- Packages
- hexo
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2025-09-04
Affected packages
• npm hexo: < 7.2.0 → fixed in 7.2.0
Description
Hexo up to v7.1.1 was discovered to contain an arbitrary file read vulnerability.
Related
Alias · CVE (1)
- CVE-2023-39584 Hexo up to v7.0.0 (RC2) was discovered to contain an arbitrary file read vulnerability. vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-39584 advisory
- https://github.com/hexojs/hexo/issues/5250 web
- https://github.com/hexojs/hexo/pull/5251 web
- https://github.com/hexojs/hexo/commit/b5b63caee27256d71a0cee8954c22375ec885d07 web
- https://github.com/hexojs/hexo package
- https://github.com/hexojs/hexo/blob/a3e68e7576d279db22bd7481914286104e867834/lib/plugins/tag/include_code.js#L49 web
- https://github.com/hexojs/hexo/blob/cefee921153ba597316457f4fedf7b87b6516917/lib/plugins/tag/include_code.ts#L50 web