CVE-2026-8754: AstrBot File Upload Vulnerability Vulnerability
LOWCVE-2026-8754 is a LOW (CVSS 6.3) file upload vulnerability vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting AstrBot libraries in the PyPI ecosystem. The issue involves file upload vulnerability in the function post_file of the file astrbot/dashboard/routes/chat.py. Remediation is available by upgrading affected packages to version 4.23.6.
CVE-2026-8754 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2026-8754
To remediate this vulnerability, upgrade all affected AstrBot dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install AstrBot>=4.23.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show AstrBot
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-8754, inspect your installed packages using pip:
pip show AstrBot
Analyze the terminal output to locate any version of AstrBot in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.23.6), your application is affected.
Note: The pip show AstrBot command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In AstrBot, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-8754 Affected AstrBot Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
AstrBot
|
PyPI |
< 4.23.6
|
4.23.6
|
References
Frequently Asked Questions
What is CVE-2026-8754?
Which AstrBot versions are affected?
What version fixes CVE-2026-8754?
Is AstrBot affected?
What is the CVSS score of CVE-2026-8754?
What CWE is associated with CVE-2026-8754?
How can I check PyPI dependencies for CVE-2026-8754?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f63h-wc26-pmvc",
"modified" : "2026-05-23T00:10:04Z",
"published" : "2026-05-17T15:31:42Z",
"aliases" : [ "CVE-2026-8754" ],
"summary" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "AstrBot"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.23.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-8754"
}, {
"type" : "WEB",
"url" : "https://github.com/AstrBotDevs/AstrBot/commit/aaec41e5054569ceaa1113593a34da7568e2d211"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/YLChen-007/054415c2b63e58813328bc879a90c504"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/AstrBotDevs/AstrBot"
}, {
"type" : "WEB",
"url" : "https://github.com/AstrBotDevs/AstrBot/releases/tag/v4.23.6"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/submit/811172"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/364381"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/364381/cti"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-23T00:10:04Z",
"nvd_published_at" : "2026-05-17T13:16:46Z"
}
}