/

CVE-2026-51914

Severity:

HIGH RISK

(8.8)

Broken Access Control (CWE-284) in SuperAGI Templates

CVE-2026-51914

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-284

Impact:

Cross-organization unauthorized access and template manipulation

Severity:

HIGH RISK

(8.8)

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

TransformerOptimus SuperAGI v0.0.14 contains an incorrect access control issue in the agent template controller. An authenticated user may be able to reference another organization's agent or execution when saving or publishing a template if caller-supplied identifiers are not checked against the user's organization.

TransformerOptimus SuperAGI v0.0.14 contains an incorrect access control issue in the agent template controller. An authenticated user may be able to reference another organization's agent or execution when saving or publishing a template if caller-supplied identifiers are not checked against the user's organization.

Affected context

The issue occurs in deployments using the affected agent template controller and its

save_agent_as_template or publish_template operations. Risk is present when these

operations accept user-controlled agent_id or agent_execution_id values without

verifying ownership or organizational authorization for the referenced resources.

The issue occurs in deployments using the affected agent template controller and its

save_agent_as_template or publish_template operations. Risk is present when these

operations accept user-controlled agent_id or agent_execution_id values without

verifying ownership or organizational authorization for the referenced resources.

Exploit preconditions

  • Attack surface: Authenticated agent template management endpoints
  • Required access: A valid user account capable of invoking the affected controller operations
  • Trigger point: Supplying an agent or execution identifier to template save or publish functionality
  • Why exploitation is possible: The controller may rely on caller-provided identifiers without confirming that the referenced resources belong to the authenticated user's organization
  • Attack surface: Authenticated agent template management endpoints
  • Required access: A valid user account capable of invoking the affected controller operations
  • Trigger point: Supplying an agent or execution identifier to template save or publish functionality
  • Why exploitation is possible: The controller may rely on caller-provided identifiers without confirming that the referenced resources belong to the authenticated user's organization

Why this happens

The underlying flaw is an authorization failure caused by missing object-level access checks.

The controller accepts resource identifiers from the caller but does not consistently enforce

an organization-ownership relationship between the authenticated principal and the referenced

agent or execution. This behavior maps to CWE-284: Improper Access Control, because

authorization decisions can be bypassed when resource ownership is not validated at the

operation boundary.

The underlying flaw is an authorization failure caused by missing object-level access checks.

The controller accepts resource identifiers from the caller but does not consistently enforce

an organization-ownership relationship between the authenticated principal and the referenced

agent or execution. This behavior maps to CWE-284: Improper Access Control, because

authorization decisions can be bypassed when resource ownership is not validated at the

operation boundary.

Potential impact

  • An authenticated user may access information associated with another organization
  • A user could create templates from unauthorized agents or executions
  • Unauthorized users may publish or alter templates derived from protected resources
  • Cross-tenant data exposure or workflow manipulation could occur
  • The issue could weaken isolation between organizations
  • An authenticated user may access information associated with another organization
  • A user could create templates from unauthorized agents or executions
  • Unauthorized users may publish or alter templates derived from protected resources
  • Cross-tenant data exposure or workflow manipulation could occur
  • The issue could weaken isolation between organizations

General mitigation guidance

Mitigation generally focuses on enforcing authorization at every resource access boundary.

Common defensive patterns include:

  • Deriving organization or tenant context from the authenticated session rather than request data
  • Verifying ownership or permitted organizational scope for every referenced agent and execution
  • Applying centralized, deny-by-default object-level authorization checks
  • Avoiding trust in caller-supplied identifiers for authorization decisions
  • Returning consistent authorization failures without disclosing whether unauthorized resources exist
  • Running integration tests that cover cross-organization access attempts

These controls should apply equally to read, save, publish, update, and related template operations.

Mitigation generally focuses on enforcing authorization at every resource access boundary.

Common defensive patterns include:

  • Deriving organization or tenant context from the authenticated session rather than request data
  • Verifying ownership or permitted organizational scope for every referenced agent and execution
  • Applying centralized, deny-by-default object-level authorization checks
  • Avoiding trust in caller-supplied identifiers for authorization decisions
  • Returning consistent authorization failures without disclosing whether unauthorized resources exist
  • Running integration tests that cover cross-organization access attempts

These controls should apply equally to read, save, publish, update, and related template operations.

How teams detect issues like this

Detection approaches may include:

  • Static analysis and code review checks for controller methods that use request-provided object identifiers without authorization calls
  • Reviewing whether every agent and execution lookup is followed by organization or tenant-scope validation
  • Testing authenticated operations with resources belonging to separate organizations
  • Monitoring authorization-denied events and unusual cross-tenant identifier access patterns
  • Enforcing policy rules that require centralized authorization middleware or service-layer checks for protected resources

Automated code review tools can help identify direct identifier-to-object flows that lack visible ownership validation.

Detection approaches may include:

  • Static analysis and code review checks for controller methods that use request-provided object identifiers without authorization calls
  • Reviewing whether every agent and execution lookup is followed by organization or tenant-scope validation
  • Testing authenticated operations with resources belonging to separate organizations
  • Monitoring authorization-denied events and unusual cross-tenant identifier access patterns
  • Enforcing policy rules that require centralized authorization middleware or service-layer checks for protected resources

Automated code review tools can help identify direct identifier-to-object flows that lack visible ownership validation.

Sources

SourceLink
gist.github.comgist.github.com/Ro1ME/bb6fefd4b943400c92c08e0f0644a986

Frequently asked

questions

It may be exploitable through the application's authenticated API or controller operations when an attacker can submit caller-controlled agent or execution identifiers.

Yes, the described attack surface requires an authenticated user with access to the affected template functionality. The critical missing control is verification that referenced resources belong to the user's organization.

Enforce server-side, object-level authorization for every referenced agent and execution before saving or publishing a template. Authorization should be based on trusted session and organization context, not on caller-supplied ownership data.

Use centralized deny-by-default authorization, test cross-organization access cases, minimize direct identifier handling in controllers, and include tenant-isolation checks in code review and continuous security testing.

It may be exploitable through the application's authenticated API or controller operations when an attacker can submit caller-controlled agent or execution identifiers.

Yes, the described attack surface requires an authenticated user with access to the affected template functionality. The critical missing control is verification that referenced resources belong to the user's organization.

Enforce server-side, object-level authorization for every referenced agent and execution before saving or publishing a template. Authorization should be based on trusted session and organization context, not on caller-supplied ownership data.

Use centralized deny-by-default authorization, test cross-organization access cases, minimize direct identifier handling in controllers, and include tenant-isolation checks in code review and continuous security testing.

Find out what's already
exploitable in your codebase.