OpenHands agent server: an unreadable settings.json turns confirmation mode off (CVE-2026-138167); fix proposed, not merged
TL;DR #
When the OpenHands agent server cannot read its settings.json, it falls back to defaults in which confirmation mode is off, so new conversations run tool calls with no approval, per issue 6370, tracked as CVE-2026-138167. No release fixes it as of 2026-11-29. The proposed fix is an open pull request. If you rely on confirmation mode, check that the file parses.
What happened #
A reporter opened issue 6370 on 2026-11-02 against v1.59.0. The issue says a truncated file, schema-invalid content, or secrets that cannot be decrypted with the current key all make the settings load return nothing and log one line. Callers then substitute defaults. The default confirmation_mode is False, so the policy becomes NeverConfirm for every conversation created while the file stays unreadable.
A project member replied on 2026-11-09 and agreed the server should return an error. The issue was open when read on 2026-11-29. Pull request 6435, opened 2026-11-03 by GitHub user onatozmenn, makes the server fail closed. It was open and unmerged on 2026-11-29.
VulDB published the record on 2026-11-29. It names FileSettingsStore.load, calls the flaw "incorrect authorization" and says "Attacking locally is a requirement." Its affected list is 1.64.0 and 1.64.1, the two newest releases. PyPI shows openhands-sdk and openhands-agent-server 1.64.1 uploaded 2026-11-25 as the newest. The issue reported the same code in 1.59.0, uploaded 2026-10-28. No source says which earlier versions are affected.
VulDB scores it 4.8 under CVSS 4.0 (AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L) and 5.3 under CVSS 3.1, read 2026-11-29. No source describes a remote way to corrupt the file.
This is a separate flaw from CVE-2026-112346, fixed in 1.52.0.
Am I affected? #
You are affected if you run the agent server through 1.64.1 and confirmation mode is what stops risky tool calls.
Check that the server's settings.json is valid JSON:
python3 -m json.tool /path/to/settings.json > /dev/null && echo ok
A file that parses can still fail the server's schema or decryption checks. Search the server log for a settings load failure.
If you are affected #
- Restore
settings.jsonfrom a known good copy and restart the server. - Review conversations created while the file was unreadable for tool calls nobody approved.
- If those conversations read untrusted content, follow if-your-local-ai-agent-was-exploited.md.
These steps are this file's caution. The project has published none.
Prevention #
- Run the agent in a sandbox that limits what an unapproved tool call can reach. See agent-sandboxing.md.
- Keep a backup of the settings file and alert on settings load errors.
Sources #
- CVE Services, CVE-2026-138167. Read 2026-11-29: CNA VulDB, published 2026-11-29, description,
affectedlist, scores, references. - OpenHands/software-agent-sdk issue 6370 and pull request 6435. Read 2026-11-29 through a summarizing fetch and paraphrased here: dates, states, the reported version.
- PyPI simple API for
openhands-sdkandopenhands-agent-server. Read 2026-11-29: upload dates for 1.59.0, 1.64.0 and 1.64.1. - Single source for the flaw: the reporter's issue, repeated by the CNA record. The project's advisory tab had no row for it on 2026-11-29.