/

CVE-2026-83817

Severity:

HIGH RISK

(7.5)

Missing Authorization (CWE-862) in CodeWhale Automation

CVE-2026-83817

Received

Vulnerability type

Category:

Authorization Bypass via Insecure Defaults

CWE:

CWE-862, CWE-1188

Impact:

Unauthorized execution of mutating tools

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

CodeWhale automation could treat an omitted approval setting as enabled, causing scheduled runs to bypass human approval for tools that can make changes. The risk arises when a user creates an automation that later runs with access to mutating tools, including shell commands.

Affected context

The issue occurs in CodeWhale's automation creation and scheduled task execution paths when the approval setting is omitted. The creation schema and default resolution treated omission as approval, and scheduled runs selected a bypass mode. The risk depends on the automation having access to tools capable of making changes.

Exploit preconditions

  • Attack surface: CodeWhale automation creation and scheduled execution
  • Required access: Ability to create an automation; the description does not establish that an unauthenticated attacker can do so
  • Trigger point: A scheduled run of an automation whose approval setting was omitted
  • Why exploitation is possible: The omitted value resolves to approval enabled, so the run can bypass human approval for available tools

Why this happens

The automation path used an insecure default: an omitted approval setting was interpreted as permission to bypass approval. This reflects CWE-1188: Initialization of a Resource with an Insecure Default Value and can lead to CWE-862: Missing Authorization when scheduled actions proceed without the expected human approval. The schema and task-enqueue behavior failed to preserve a safer fallback for omitted settings.

Potential impact

  • Scheduled runs may execute mutating tools without a human present.
  • Automations with shell access could repeatedly execute commands.
  • Unauthorized changes to files, systems, or other accessible resources could occur.

General mitigation guidance

Defensive patterns include making approval opt-in rather than the default, treating omitted or invalid settings as requiring approval, and applying the same authorization checks to manual and scheduled task paths. Limit which tools automations can access, use least-privilege execution contexts, and require explicit, informed authorization for recurring actions.

How teams detect issues like this

Review automation schemas and default-resolution logic for settings that grant permission or bypass approval when omitted. Trace approval decisions through task creation and scheduled execution, and check that every execution path enforces equivalent authorization. Policy checks can flag permissive defaults and automations with broad tool access; audit logs can help identify scheduled actions that ran without human approval.

Sources

SourceLink
github.comgithub.com/codewhale-hq/Codewhale/commit/208421b9d23d81cea3311a1eeb2a2ea81d637686
github.comgithub.com/codewhale-hq/Codewhale/releases/tag/v0.9.0
github.comgithub.com/codewhale-hq/Codewhale/security/advisories/GHSA-8hp3-xxrg-v9c8

Frequently asked

questions

The description does not establish unauthenticated remote exploitability. The relevant condition is the ability to create an automation that later runs with access to mutating tools.

An attacker would need access to create or influence an automation. The impact also depends on the tools and permissions available to that automation.

Require explicit approval-bypass configuration and treat omitted or invalid approval settings as requiring human approval.

Use secure defaults, apply consistent authorization checks across manual and scheduled paths, restrict automation privileges, and test behavior when security-sensitive settings are omitted.

Find out what's already
exploitable in your codebase.