---
id: 2026-11-openhands-agent-server-unreadable-settings-confirmation-off-cve-2026-138167-no-fix
title: "OpenHands agent server: an unreadable settings.json turns confirmation mode off (CVE-2026-138167); fix proposed, not merged"
date_disclosed: 2026-11-29
last_updated: 2026-11-29
severity: medium
status: active
ecosystems: [pypi, openhands, agent-framework]
tools_affected: ["openhands-agent-server and openhands-sdk through 1.64.1 where confirmation mode is the tool gate"]
tags: [cve, vuldb, openhands, agent-framework, fail-open, confirmation-bypass, no-fix, local]
---

## 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](https://github.com/OpenHands/software-agent-sdk/issues/6370), tracked as [CVE-2026-138167](https://cveawg.mitre.org/api/cve/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](https://github.com/OpenHands/software-agent-sdk/issues/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](https://github.com/OpenHands/software-agent-sdk/pull/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](2026-10-openhands-software-agent-sdk-sandbox-agent-server-unauthenticated-root-rce-cve-2026-112346.md), 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:

```bash
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

1. Restore `settings.json` from a known good copy and restart the server.
2. Review conversations created while the file was unreadable for tool calls nobody approved.
3. If those conversations read untrusted content, follow [if-your-local-ai-agent-was-exploited.md](../playbooks/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](../prevention/agent-sandboxing.md).
- Keep a backup of the settings file and alert on settings load errors.

## Sources

- [CVE Services, CVE-2026-138167](https://cveawg.mitre.org/api/cve/CVE-2026-138167). Read 2026-11-29: CNA VulDB, published 2026-11-29, description, `affected` list, scores, references.
- [OpenHands/software-agent-sdk issue 6370](https://github.com/OpenHands/software-agent-sdk/issues/6370) and [pull request 6435](https://github.com/OpenHands/software-agent-sdk/pull/6435). Read 2026-11-29 through a summarizing fetch and paraphrased here: dates, states, the reported version.
- PyPI simple API for `openhands-sdk` and `openhands-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.
