# CVE-2026-58171: HKUDS Vibe-Trading path traversal in swarm run identifier

Source: https://junglewise.ai/threats/cve-2026-58171-hkuds-vibe-trading-path-traversal-in-swarm-run-identifier  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-30. Updated: 2026-06-30  
License: CC BY 4.0 with a link back

CVE-2026-58171 · Severity: medium · CVSS 4.2 · Published 2026-06-30

Vibe-Trading is an AI-driven trading platform that uses 'swarms' to manage automated trading tasks. A security flaw in how the system handles task identifiers allows an attacker with access to the tool interface to manipulate file paths. This could lead to the corruption or overwriting of internal configuration files, potentially disrupting trading operations or causing the system to process incorrect data.

Technologies: [HKUDS Vibe-Trading](https://junglewise.ai/threats/technologies/vibe-trading). Vendors: [HKUDS](https://junglewise.ai/threats/vendors/hkuds).

## Quick answers

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

**How severe is CVE-2026-58171?** Medium severity, with a CVSS score of 4.2, published 30 June 2026.

**Which products and versions are affected?** HKUDS Vibe-Trading < 0.1.10.

**Is there a fix for CVE-2026-58171?** A patch was published on 2026-06-18: Fix merged in pull request #258 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-58171 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-58171?** Check whether you run HKUDS Vibe-Trading 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 path traversal vulnerability exists in Vibe-Trading's swarm storage logic (agent/src/swarm/store.py). The `run_dir` function constructs filesystem paths by joining a base directory with a caller-supplied `run_id` without proper sanitization or validation. An attacker with access to the Model Context Protocol (MCP) swarm tools can provide a crafted `run_id` (e.g., using '../' sequences) to access or overwrite `run.json` files outside the designated `.swarm/runs` directory. While the impact is limited to locations containing parseable `run.json` files, it allows for unauthorized modification of swarm artifacts and state. The issue is fixed in version 0.1.10 by enforcing that run identifiers are bare strings without path separators.

## Affected products

- HKUDS Vibe-Trading < 0.1.10

## Timeline

- 2026-06-18: patched: Fix merged in pull request #258
- 2026-06-19: advisory: Official release of v0.1.10 containing the fix
- 2026-06-30: disclosed: CVE-2026-58171 published

## References

- [https://github.com/HKUDS/Vibe-Trading/commit/f45fd85392f07b5e404e41d4fcb0ef0d6c2f87ab](https://github.com/HKUDS/Vibe-Trading/commit/f45fd85392f07b5e404e41d4fcb0ef0d6c2f87ab)
- [https://github.com/HKUDS/Vibe-Trading/pull/258](https://github.com/HKUDS/Vibe-Trading/pull/258)
- [https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.10](https://github.com/HKUDS/Vibe-Trading/releases/tag/v0.1.10)
- [https://www.vulncheck.com/advisories/vibe-trading-path-traversal-via-swarm-run-identifier](https://www.vulncheck.com/advisories/vibe-trading-path-traversal-via-swarm-run-identifier)

## Related threats

- [HKUDS Vibe-Trading missing authentication in FastAPI server](https://junglewise.ai/threats/cve-2026-114108-hkuds-vibe-trading-from-0-1-0-before-0-1-7-contains-a-missing)
- [HKUDS Vibe-Trading indirect prompt injection in BashTool and BackgroundRunTool](https://junglewise.ai/threats/cve-2026-114107-hkuds-vibe-trading-from-0-1-0-before-0-1-7-contains-an-indirect)
- [HKUDS Vibe-Trading path traversal in file-read tools](https://junglewise.ai/threats/cve-2026-114106-hkuds-vibe-trading-from-0-1-0-before-0-1-7-contains-a-path)
- [Vibe-Trading FastAPI unauthenticated access and RCE chain](https://junglewise.ai/threats/vibe-trading-fastapi-endpoints-permit-unauthenticated-access-file-1d82990e)
- [HKUDS Vibe-Trading path traversal in persistent memory storage](https://junglewise.ai/threats/cve-2026-58173-hkuds-vibe-trading-path-traversal-in-persistent-memory-storage)
