MEDIUM4.7
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/astrbot
Introduced in:
0No fixed version published yet for astrbot (pip). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-6984[ADVISORY]
- https://github.com/AstrBotDevs/AstrBot/issues/7330[WEB]
- https://github.com/AstrBotDevs/AstrBot[PACKAGE]
- https://vuldb.com/submit/796164[WEB]
- https://vuldb.com/vuln/359527[WEB]
- https://vuldb.com/vuln/359527/cti[WEB]
- https://pypi.org/project/astrbot[PACKAGE]
- https://github.com/advisories/GHSA-h3rr-9wqj-v3c6[ADVISORY]