PyPA Advisory Database
PYSEC-2026-2380
AstrBot: File upload vulnerability in the function post_file of the file astrbot/dashboard/routes/chat.py
Details
A vulnerability was detected in AstrBotDevs AstrBot up to 4.23.5. Impacted is the function post_file of the file astrbot/dashboard/routes/chat.py of the component File Upload Handler. The manipulation of the argument filename results in path traversal. It is possible to launch the attack remotely. The exploit is now public and may be used. Upgrading to version 4.23.6 is recommended to address this issue. The patch is identified as aaec41e5054569ceaa1113593a34da7568e2d211. You should upgrade the affected component.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | astrbot | All versions before 4.23.6 (fixed in 4.23.6) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-8754
- https://github.com/AstrBotDevs/AstrBot/commit/aaec41e5054569ceaa1113593a34da7568e2d211
- https://gist.github.com/YLChen-007/054415c2b63e58813328bc879a90c504
- https://github.com/AstrBotDevs/AstrBot
- https://github.com/AstrBotDevs/AstrBot/releases/tag/v4.23.6
- https://vuldb.com/submit/811172
- https://vuldb.com/vuln/364381
- https://vuldb.com/vuln/364381/cti
- https://pypi.org/project/astrbot
- https://github.com/advisories/GHSA-f63h-wc26-pmvc