/

CVE-2026-64622

Severity:

HIGH RISK

(7.5)

Missing Auth on ApprovalInbox APIs (CWE-862) in network-ai

CVE-2026-64622

Deferred

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Sensitive Data Exposure via Unauthenticated API Access

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

Network-AI's ApprovalInbox read APIs fail to enforce configured authorization checks, allowing unauthenticated users to access sensitive approval request data.

When exposed, these endpoints can be queried directly or via cross-origin requests from any website, leaking command details, file paths, justifications, and risk metadata.

Affected context

This vulnerability appears in Network-AI instances where operators rely on the checkAuth/secret mechanism to protect ApprovalInbox data but still expose the HTTP interface.

Specifically, the GET read routes under /approvals do not apply the configured authorization checks, even though other parts of the system may be protected.

The risk increases when these APIs are reachable from user browsers, since responses are marked with Access-Control-Allow-Origin: *, allowing data leakage through cross-origin requests.

Exploit preconditions

  • Attack surface: Public or internal HTTP endpoints exposing the ApprovalInbox GET routes
  • Required access: Network reachability to the affected Network-AI instance; no authentication required on the vulnerable routes
  • Trigger point: Issuing requests to:
  • GET /approvals/?status=all
  • GET /approvals/:id
  • GET /approvals/stats
  • GET /approvals/sse
  • Why exploitation is possible: The routes omit enforcement of the configured checkAuth/secret authorization logic and send responses with a permissive Access-Control-Allow-Origin: * header, enabling direct and cross-origin data access.

Why this happens

The underlying issue is a broken authorization design pattern where some API endpoints are not consistently wired through the same access-control mechanism as the rest of the application.

Although a checkAuth/secret configuration exists, the ApprovalInbox read routes bypass or omit this check entirely, leading to CWE-862: Missing Authorization.

This reflects a common bug class: endpoint- or feature-level authorization gaps, where developers secure write operations or core APIs but unintentionally expose read-only or "utility" routes without equivalent protection.

Potential impact

  • Unauthenticated access to detailed approval requests, including shell command strings and target file paths
  • Disclosure of operational workflows, automation logic, and infrastructure hints to unauthorized parties
  • Leakage of user-supplied justifications and risk levels that may contain sensitive business context
  • Facilitation of targeted attacks using disclosed commands, paths, or inferred environment details
  • Abuse of cross-origin behavior to quietly exfiltrate approval data when operators visit malicious websites

General mitigation guidance

Mitigation generally focuses on enforcing consistent authorization across all API routes and reducing the implicit trust placed on browser-accessible endpoints.

Common patterns include:

  • Centralizing authorization middleware so that every route, including read-only endpoints, passes through the same access-control checks
  • Designing approval and audit APIs under a clear access-control model, ensuring secrets or tokens govern all interactions
  • Avoiding liberal CORS policies by default; restrict origins to trusted domains and align cross-origin behavior with explicit use cases
  • Applying least-privilege principles to exposed API surfaces, ensuring that sensitive operational data is never returned to unauthenticated callers
  • Treating route additions and refactors as security-sensitive changes, with explicit review of their authorization handling

How teams detect issues like this

Effective detection starts with cataloging API endpoints and verifying which authorization controls apply to each route.

Security teams can:

  • Use static analysis or framework-aware linters to ensure all route handlers invoke standardized authentication and authorization middleware
  • Add automated tests or policy checks that simulate unauthenticated requests against sensitive APIs and verify access is denied
  • Include authorization mapping in code review templates, requiring reviewers to confirm that new endpoints are covered by existing auth mechanisms
  • Apply runtime monitoring or API gateway policies that log and alert on unexpected anonymous access to sensitive paths such as /approvals/*

Sources

SourceLink
github.comgithub.com/Jovancoding/Network-AI/security/advisories/GHSA-m4jg-6w3q-gm86
vulncheck.comvulncheck.com/advisories/network-ai-through-missing-authorization-via-approvalinbox

Frequently asked

questions

Yes, if the affected Network-AI instance is reachable over the network, an attacker can query the vulnerable approval routes without authentication and retrieve sensitive data.

Only network access to the exposed endpoints is required. The configured checkAuth/secret is not enforced on these read APIs, so no valid credentials or tokens are needed.

Route all ApprovalInbox APIs through a centralized authorization layer that enforces the configured secret or equivalent authentication, and ensure that all new or existing endpoints inherit the same access-control policy.

Adopt a secure-by-default API design where routes are closed unless explicitly opened, enforce consistent middleware usage through frameworks and CI checks, and regularly audit API inventories to confirm that sensitive data paths are not exempt from authorization.

Find out what's already
exploitable in your codebase.