high7.5
CVE-2023-39584
Hexo `include_code` has a path traversal
Impact
Hexo up to v7.1.1 was discovered to contain an arbitrary file read vulnerability.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | hexo | < 7.2.0 | 7.2.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Hexo | Hexo | through 6.3.0 Version 7.0.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/hexojs/hexo/blob/a3e68e7576d279db22bd7481914286104e867834/lib/plugins/tag/include_code.js#L49
- https://github.com/hexojs/hexo/issues/5250
- https://www.gem-love.com/2023/07/25/hexo%E5%8D%9A%E5%AE%A2%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E5%92%8C%E4%BB%A3%E7%A0%81%E6%89%A7%E8%A1%8C%E6%BC%8F%E6%B4%9E/#undefined
- https://github.com/advisories/GHSA-x2jc-989c-47q4
- https://nvd.nist.gov/vuln/detail/CVE-2023-39584
- https://github.com/hexojs/hexo/pull/5251
- https://github.com/hexojs/hexo/commit/b5b63caee27256d71a0cee8954c22375ec885d07
- https://github.com/hexojs/hexo/blob/cefee921153ba597316457f4fedf7b87b6516917/lib/plugins/tag/include_code.ts#L50