openhands-agent-server is vulnerable to Insertion of Sensitive Information into Externally Accessible File or Directory
55
CVE Score
Medium
Insertion of Sensitive Information into Externally Accessible File or Directory
The agent server stores user settings and secrets through file-based stores whose default persistence directory is workspace-relative when the persistence-directory environment variable is unset. In that default mode, saving settings or secrets writes credential-bearing settings.json and secrets.json files, including plaintext LLM API keys, into the project workspace. Any process or user with workspace access can read these files, and they are easily committed to version control, exposing the stored credentials. The fix routes the settings and secrets stores to the user profile persistence directory outside the workspace.
Upgrade the openhands-agent-server library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and the agent server runs without OH_PERSISTENCE_DIR configured, so settings and secrets fall back to a workspace-relative directory.
1.21.0 - 1.39.1
Fixed in 1.40.0openhands-agent-server is vulnerable to Insertion of Sensitive Information into Externally Accessible File or Directory in versions 1.21.0 - 1.39.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.