PYSEC-2026-2381
Vulnerability from pysec - Published: 2026-07-13 15:02 - Updated: 2026-07-13 16:03A 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.
| Name | purl | astrbot | pkg:pypi/astrbot |
|---|
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "astrbot",
"purl": "pkg:pypi/astrbot"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "4.22.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.4.39",
"3.5.10",
"3.5.11",
"3.5.12",
"3.5.13",
"3.5.14",
"3.5.15",
"3.5.17",
"3.5.18",
"3.5.19",
"3.5.20",
"3.5.21",
"3.5.22",
"3.5.23",
"3.5.24",
"3.5.25",
"3.5.26",
"3.5.27",
"3.5.6",
"3.5.7",
"3.5.8",
"3.5.9",
"4.0.0",
"4.0.0b1",
"4.0.0b2",
"4.0.0b3",
"4.0.0b4",
"4.0.0b5",
"4.1.0",
"4.1.1",
"4.1.2",
"4.1.3",
"4.1.4",
"4.1.5",
"4.1.6",
"4.1.7",
"4.10.0",
"4.10.0a1",
"4.10.0a2",
"4.10.1",
"4.10.2",
"4.10.3",
"4.10.4",
"4.10.5",
"4.10.6",
"4.11.0",
"4.11.1",
"4.11.2",
"4.11.3",
"4.11.4",
"4.12.0",
"4.12.1",
"4.12.2",
"4.12.3",
"4.12.4",
"4.13.0",
"4.13.1",
"4.13.2",
"4.14.0",
"4.14.1",
"4.14.2",
"4.14.3",
"4.14.4",
"4.14.5",
"4.14.6",
"4.14.7",
"4.14.8",
"4.15.0",
"4.16.0",
"4.17.0",
"4.17.1",
"4.17.2",
"4.17.3",
"4.17.4",
"4.17.5",
"4.17.6",
"4.18.0",
"4.18.1",
"4.18.2",
"4.18.3",
"4.19.2",
"4.19.3",
"4.19.4",
"4.19.5",
"4.2.0",
"4.2.1",
"4.20.0",
"4.20.1",
"4.21.0",
"4.22.0",
"4.22.1",
"4.3.0",
"4.3.1",
"4.3.2",
"4.3.3",
"4.3.5",
"4.5.0",
"4.5.1",
"4.5.2",
"4.5.3",
"4.5.6",
"4.5.7",
"4.5.8",
"4.6.0",
"4.6.1",
"4.7.0",
"4.7.1",
"4.7.3",
"4.7.4",
"4.8.0",
"4.9.0",
"4.9.1",
"4.9.2"
]
}
],
"aliases": [
"CVE-2026-6984",
"GHSA-h3rr-9wqj-v3c6"
],
"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.",
"id": "PYSEC-2026-2381",
"modified": "2026-07-13T16:03:32.786704Z",
"published": "2026-07-13T15:02:53.420297Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-6984"
},
{
"type": "WEB",
"url": "https://github.com/AstrBotDevs/AstrBot/issues/7330"
},
{
"type": "PACKAGE",
"url": "https://github.com/AstrBotDevs/AstrBot"
},
{
"type": "WEB",
"url": "https://vuldb.com/submit/796164"
},
{
"type": "WEB",
"url": "https://vuldb.com/vuln/359527"
},
{
"type": "WEB",
"url": "https://vuldb.com/vuln/359527/cti"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/astrbot"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-h3rr-9wqj-v3c6"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P",
"type": "CVSS_V4"
}
],
"summary": "AstrBot has Incomplete Filtering of Special Elements"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.