# CVE-2025-57698: PYSEC-2026-1198 - AstrBot contains a directory traversal vulnerability

Source: https://junglewise.ai/threats/cve-2025-57698-astrbot-contains-a-directory-traversal-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-11-07  
License: CC BY 4.0 with a link back

CVE-2025-57698 · Severity: high · CVSS 7.5 · Published 2025-11-07

AstrBot Project v3.5.22 contains a directory traversal vulnerability. The handler function install_plugin_upload of the interface '/plugin/install-upload' parses the filename from the request body provided by the user, and directly uses the filename to assign to file_path without checking the validity of the filename. The variable file_path is then passed as a parameter to the function `file.save`, so that the file in the request body can be saved to any location in the file system through directory traversal.

Technologies: [astrbot (PyPI)](https://junglewise.ai/threats/technologies/astrbot). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-57698 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-57698 being exploited in the wild.

**How severe is CVE-2025-57698?** High severity, with a CVSS score of 7.5, published 7 November 2025.

**Which products and versions are affected?** astrbot (PyPI) ECOSYSTEM:introduced=0,last_affected=3.5.22.

**Is there a fix for CVE-2025-57698?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2025-57698?** Check whether you run Astrbot or astrbot (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- Astrbot
- astrbot (PyPI) ECOSYSTEM:introduced=0,last_affected=3.5.22

## Identifiers

- CVE-2025-57698
- GHSA-xrj9-mw57-j34v
- PYSEC-2026-1198

## Related threats

- [PYSEC-2026-1196 - AstrBot Has Path Traversal Vulnerability in /api/chat/get_file](https://junglewise.ai/threats/cve-2025-48957-astrbot-has-path-traversal-vulnerability-in-api-chat-get-file)
- [AstrBotDevs AstrBot authorization bypass via delimiter injection in session_id](https://junglewise.ai/threats/cve-2026-10212-astrbotdevs-astrbot-authorization-bypass-via-delimiter-injection)
- [AstrBotDevs AstrBot path traversal in file upload handler](https://junglewise.ai/threats/cve-2026-8754-astrbotdevs-astrbot-path-traversal-in-file-upload-handler)
- [AstrBotDevs AstrBot hardcoded JWT secret key](https://junglewise.ai/threats/cve-2025-55449-astrbot-hard-coded-jwt-key-authentication-bypass-and-rce)
- [PYSEC-2026-2382 - AstrBot Makes Use of Hard-coded Password](https://junglewise.ai/threats/cve-2026-7579-astrbot-makes-use-of-hard-coded-password)
