# CVE-2026-139888: Twigpine Zero improper authorization in LoadConfig hook handling

Source: https://junglewise.ai/threats/cve-2026-139888-a-vulnerability-was-determined-in-twigpine-zero-up-to-0-14-0  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-12-01. Updated: 2026-12-01  
License: CC BY 4.0 with a link back

CVE-2026-139888 · Severity: medium · CVSS 5.3 · Published 2026-12-01

Twigpine Zero is a coding agent that executes tools based on configured policies. A malformed or inaccessible hooks.json configuration file causes the authorization policy to silently fail open, allowing blocked tools like arbitrary command execution to run without restriction. An attacker with write access to the hooks.json file or the ability to corrupt it can bypass all configured security policies in affected deployments.

## Quick answers

**Is CVE-2026-139888 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-139888 being exploited in the wild.

**How severe is CVE-2026-139888?** Medium severity, with a CVSS score of 5.3, published 1 December 2026.

**Which products and versions are affected?** Twigpine Zero up to 0.14.0.

**Is there a fix for CVE-2026-139888?** No fixed version is recorded yet. Restrict file permissions on ~/.config/zero/hooks.json and .zero/hooks.json to prevent unauthorized modification. Regularly validate hooks.json schema integrity and monitor hook policy status via 'zero hooks list' to detect silent policy failures.</anigation>
</invoke> If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-139888 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-139888?** Check whether you run Twigpine Zero at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix


Restrict file permissions on ~/.config/zero/hooks.json and .zero/hooks.json to prevent unauthorized modification. Regularly validate hooks.json schema integrity and monitor hook policy status via 'zero hooks list' to detect silent policy failures.</anigation>
</invoke>

## Technical details

The LoadConfig function in internal/hooks/hooks.go fails to report an error when a hooks.json layer is malformed (invalid JSON, unreadable, schema-invalid, or a dangling symlink). Instead, it returns an empty policy, causing the dispatcher to have zero hooks and all blocking decisions to fail open. An attacker with local write access to ~/.config/zero/hooks.json or .zero/hooks.json can corrupt the file to disable beforeTool blocks, allowing execution of tools that should be restricted (exec_command, write_file, web_fetch, etc.). The malfunction persists across sessions until manually remedied.

## Affected products

- Twigpine Zero up to 0.14.0

## Timeline

- 2026-12-01: disclosed: CVE-2026-139888 published
- 2026-11-09: other: Fix proposed in GitHub PR #1211

## References

- [https://github.com/Twigpine/zero/](https://github.com/Twigpine/zero/)
- [https://github.com/Twigpine/zero/pull/1211](https://github.com/Twigpine/zero/pull/1211)
