cuga is vulnerable to Path Traversal
75
High Risk
The serve_flows and serve_react static file routes build a filesystem path with os.path.join from a user-supplied URL segment and serve it after only an existence check, without confirming the resolved path stays under the static directory. A request containing ../ sequences escapes the static root and reads arbitrary files readable by the server process without authentication. This exposes sensitive deployment files such as .env files holding model-provider API keys and other secrets. The fix validates each resolved path with assert_resolved_path_under and returns 404 for paths that resolve outside the static root.
You are affected if you run the CUGA backend server and its serve_flows/serve_react static file routes are reachable on the network.
cuga is vulnerable to Path Traversal in versions 0.0.1 - 0.3.1.
Upgrade the cuga library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant