CVE-2026-6984 Details
Description
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.
A server-side template injection vulnerability has been identified in AstrBotDevs AstrBot, affecting versions through 4.22.1. The issue arises in the Dashboard API, specifically within the 'create_template' function of 'astrbot/dashboard/routes/t2i.py'. This vulnerability allows authenticated users to create and update text-to-image (T2I) templates without any content validation or sanitization. The injected templates, which can include malicious Jinja2 payloads, are sent to a remote rendering endpoint for processing. Exploitation of this vulnerability could lead to unauthorized code execution or information disclosure on the rendering server.
It is recommended to sanitize template content by removing or escaping Jinja2 expressions before storage. Using Jinja2's SandboxedEnvironment on the rendering server can prevent code execution. Additionally, implementing a template allowlist and validating template content before storage can help mitigate the vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 25, 2026CISA-ADP
Assessed Apr 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/AstrBotDevs/AstrBot/ | [email protected] | Vendor |
| https://github.com/AstrBotDevs/AstrBot/issues/7330 | [email protected] | ExploitIssue TrackingTechnical AnalysisVendor |
| https://vuldb.com/submit/796164 | [email protected] | Issue TrackingTechnical Description |
| https://vuldb.com/vuln/359527 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/359527/cti | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
| CWE-791 | Incomplete Filtering of Special Elements | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| AstrBot | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 25, 2026 | New CVE Received | [email protected] |
Volerion