PyPA Advisory Database
PYSEC-2026-2381
AstrBot has Incomplete Filtering of Special Elements
Details
A security flaw has been discovered in AstrBotDevs AstrBot up to 4.22.1. This affects the function create_template of the file astrbot/dashboard/routes/t2i.py of the component Dashboard API. The manipulation results in improper neutralization of special elements used in a template engine. The attack can be executed remotely. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | astrbot | All versions up to and including 4.22.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-6984
- https://github.com/AstrBotDevs/AstrBot/issues/7330
- https://github.com/AstrBotDevs/AstrBot
- https://vuldb.com/submit/796164
- https://vuldb.com/vuln/359527
- https://vuldb.com/vuln/359527/cti
- https://pypi.org/project/astrbot
- https://github.com/advisories/GHSA-h3rr-9wqj-v3c6