# CVE-2026-51912: OpenBMB XAgent directory traversal in file upload

Source: https://junglewise.ai/threats/cve-2026-51912-openbmb-xagent-v1-0-0-contains-directory-traversal-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-29. Updated: 2026-10-29  
License: CC BY 4.0 with a link back

CVE-2026-51912 · Severity: info · Published 2026-10-29

XAgent is an autonomous agent framework that uses a ToolServer component to handle file uploads. A directory traversal vulnerability in the upload handler allows an attacker to write files to arbitrary locations on the server by manipulating the filename parameter, potentially leading to code execution or data compromise.

Technologies: [OpenBMB XAgent](https://junglewise.ai/threats/technologies/xagent). Vendors: [OpenBMB](https://junglewise.ai/threats/vendors/openbmb).

## Quick answers

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

**How severe is CVE-2026-51912?** Informational severity, published 29 October 2026.

**Which products and versions are affected?** OpenBMB XAgent v1.0.0.

**Is there a fix for CVE-2026-51912?** 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.

**How is CVE-2026-51912 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-51912?** Check whether you run OpenBMB XAgent 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.

## Technical details

A directory traversal vulnerability exists in ToolServer/ToolServerNode/main.py at the /upload_file endpoint (line 46), where user-supplied filename parameters are not properly sanitized before constructing file paths. An attacker can inject path traversal sequences (e.g., ../) to write files outside the intended upload directory. This requires network access to the ToolServer HTTP endpoint, typically listening on localhost:8080.

## Affected products

- OpenBMB XAgent v1.0.0

## Timeline

- 2026-10-29: disclosed

## References

- [https://gist.github.com/Ro1ME/9999d9e504c5238dc48a023ef7c51d01](https://gist.github.com/Ro1ME/9999d9e504c5238dc48a023ef7c51d01)
- [https://github.com/OpenBMB/XAgent](https://github.com/OpenBMB/XAgent)

## Related threats

- [OpenBMB XAgent path traversal in workspace file endpoint](https://junglewise.ai/threats/cve-2026-72713-openbmb-xagent-path-traversal-in-workspace-file-endpoint)
- [OpenBMB XAgent path traversal in workspace router](https://junglewise.ai/threats/cve-2026-26396-openbmb-xagent-path-traversal-in-workspace-router)
- [A vulnerability was found in OpenBMB XAgent 1.0.0. This impacts the function check_user of the file…](https://junglewise.ai/threats/cve-2026-4959-a-vulnerability-was-found-in-openbmb-xagent-1-0-0-this-impacts-the)
- [A vulnerability has been found in OpenBMB XAgent 1.0.0. This affects the function…](https://junglewise.ai/threats/cve-2026-4958-a-vulnerability-has-been-found-in-openbmb-xagent-1-0-0-this)
- [A flaw has been found in OpenBMB XAgent 1.0.0. The impacted element is the function FunctionHandler.handle_tool_call…](https://junglewise.ai/threats/cve-2026-4957-a-flaw-has-been-found-in-openbmb-xagent-1-0-0-the-impacted-element)
