Junglewise Threat Intelligence

CVE-2026-56402: nanocoai NanoClaw privilege escalation in handleApprovalsResponse

CVE-2026-56402 · Severity: medium · CVSS 6.5 · Published 2026-06-23

Technologies: Nanocoai Nanoclaw.

Executive brief

NanoClaw, an automation and agent management tool, contains a security flaw in how it handles administrative approvals. An attacker with low-level access can bypass security prompts to authorize restricted actions, such as installing unauthorized software packages or modifying system settings. This allows unauthorized users to perform high-privilege tasks that should be reserved for administrators, potentially compromising the integrity of the managed environment.

Technical details

A privilege escalation vulnerability exists in NanoClaw's `handleApprovalsResponse` function due to missing authorization checks (CWE-862). The system previously validated approval requests based solely on the possession of a valid `questionId` rather than verifying the responder's identity and role. An authenticated attacker with network access can submit a crafted approval response payload to authorize or reject privileged actions, such as package installations or system modifications, without possessing administrator or owner privileges. The vulnerability was addressed in version 2.1.17 by implementing server-side role validation using `isAuthorizedApprovalClick` and normalizing responder identities before processing approval decisions.

Affected products

  • nanocoai NanoClaw < 2.1.17

Timeline

  • 2026-05-15: disclosed: Initial pull request submitted by researcher
  • 2026-06-09: patched: Fix merged into main branch
  • 2026-06-23: advisory: CVE published and NVD record created

References