CVE-2026-138167
OpenHands SDK can drop confirmation mode after a settings-read failure
OpenHands · software-agent-sdk
First documented disclosure · Review checkpoint
Summary
Unreadable persisted settings can make a previously confirmation-gated agent start with confirmation disabled.
Severity and exploitation evidence
Medium · 4.8/10 · CVSS 4.0. Severity source.
Exploitation not established: Public researcher or maintainer evidence establishes the reported behavior, not malicious exploitation or identified victims. No payload, package, model or proof of concept was executed during this review.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
FileSettingsStore.load returns no settings on JSON, schema or decryption failure. Callers replace that with default PersistedSettings, whose confirmation_mode is false, selecting NeverConfirm for new conversations.
Conditions required
Confirmation was previously enabled, an existing settings file becomes unreadable, the affected agent-server creation path starts a new conversation, and a model requests a risky tool. An already permissive default configuration does not lose an additional gate.
Potential impact
Tools may run without the operator confirmation that the stored configuration intended. Actions remain constrained by process privileges and any independent sandbox.
Affected versions and configurations
The original report tested 1.59.0; the CNA lists 1.64.0 and 1.64.1. These version statements differ and neither is expanded into an unverified complete affected range.
Fix and mitigation status
PR 6435 proposes strict loading on selected settings, gateway and profile paths, but remains open and unmerged at the fresh review. No released correction was verified.
Practical next steps
Stop startup or conversation creation when existing policy settings cannot be loaded. Verify effective confirmation mode and independently constrain tool privileges pending a merged correction.
Operating lesson
Corrupt security policy must fail closed instead of becoming permissive defaults.
Evidence and limits
The original November 2 report and November 3 proposed PR were reviewed in full. The proposal keeps lenient loading elsewhere; its presence does not establish a fixed SDK release. Issuing CNA publication was 2026-11-29; this is distinct from the earlier original disclosure and any later index ingestion. Severity is VulDB CNA CVSS 4.0 Medium 4.8. CNA also supplies CVSS 3.1 Medium 5.3.
Sources
- Original public report
Primary source ·
- Open, unmerged correction proposal
Primary source ·
- Issuing CNA record
Primary source ·