Skip to content
High 7.5

CodeWhaleの自動実行で承認が省略時に有効となり、認可なしでツールが実行される脆弱性

CVE-2026-83817 First seen on SecPulse

Summary

CodeWhaleの0.9.0より前のバージョンには、自動化タスクの承認設定を省略すると既定で有効になる脆弱性があります。ユーザーが一度承認した定期実行の自動化は、以後の実行で人の確認なしに変更系ツールを実行できる場合があり、シェルアクセスを持つ自動化ではコマンドが繰り返し実行されるおそれがあります。0.9.0で修正されているため、0.9.0以降へ更新してください。公開は2026年11月16日です。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

CodeWhaleの0.9.0より前のバージョンには、自動化タスクの承認設定を省略すると既定で有効になる脆弱性があります。ユーザーが一度承認した定期実行の自動化は、以後の実行で人の確認なしに変更系ツールを実行できる場合があり、シェルアクセスを持つ自動化ではコマンドが繰り返し実行されるおそれがあります。0.9.0で修正されているため、0.9.0以降へ更新してください。公開は2026年11月16日です。

Affected packages

PackageAffected → Fixed
codewhale-hqCodeWhale —
crates.iocodewhale-tui
< 0.9.0→ 0.9.0
npmcodewhale
< 0.9.0→ 0.9.0
rustcodewhale-tui
< 0.9.0→ 0.9.0
Original description The description as published by the source.

Maintainer resolution

The CodeWhale maintainers validated this report. CodeWhale 0.8.67 and earlier are affected. Version 0.9.0 contains the fix in commit 208421b9d23d81cea3311a1eeb2a2ea81d637686. Users should upgrade to 0.9.0 or later. The original reporter analysis is preserved below.

Summary

CVE-2026-45374 (GHSA-72w5-pf8h-xfp4) hardened the task path so auto-approval must be opted into explicitly: add_task uses req.auto_approve.unwrap_or(false) (task_manager.rs:868). The automation subsystem was not hardened in kind. AutomationRecord::task_auto_approve() resolves an omitted auto_approve to DEFAULT_AUTOMATION_AUTO_APPROVE = true (automation_manager.rs:29, 101-103), and enqueue_run_task builds the NewTaskRequest with auto_approve: Some(automation.task_auto_approve()) — i.e. an explicit Some(true) (automation_manager.rs:766). Because the field is Some, unwrap_or(false) returns true and the seed-2 default is bypassed. That true propagates to ApprovalMode::Bypass (runtime_threads.rs:2253), where the background approval loop auto-approves every tool call with no human present (runtime_threads.rs:3383-3416). One approved automation_create becomes a durable, recurring, fully auto-approved agent. Same insecure-default class as CVE-2026-45374, on a different, unpatched subsystem.

Root Cause

Sibling durable defaults in the same struct are safe — DEFAULT_AUTOMATION_ALLOW_SHELL = false and DEFAULT_AUTOMATION_TRUST_MODE = false (automation_…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details