/

CVE-2026-123786

Severity:

HIGH RISK

(8.5)

Server-Side Request Forgery (CWE-918) in Agenta Workflows

CVE-2026-123786

Deferred

Vulnerability type

Category:

Server-Side Request Forgery

CWE:

CWE-918

Impact:

Credential and secret disclosure; access to internal or cloud metadata services

Severity:

HIGH RISK

(8.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

Agenta has a server-side request forgery vulnerability in workflow invocations: a workspace member with workflow edit rights can set an arbitrary revision URL and redirect requests. Depending on the destination and how the request is handled, this may expose an attached Authorization token, provider secrets in the vault API, or services at internal and cloud metadata addresses.

Affected context

The issue concerns Agenta workflow invocations that use a revision URL controlled through workflow editing. It is risky when a user with workflow edit rights can set a destination outside the intended trusted services, and requests carry an Authorization token or can reach internal network destinations.

Exploit preconditions

  • Attack surface: Workflow invocation requests that follow a configured revision URL
  • Required access: Workspace membership with workflow edit rights
  • Trigger point: An invocation uses a workflow revision configured with an arbitrary URL
  • Why exploitation is possible: The destination can be redirected, potentially causing requests or attached credentials to reach an unintended service

Why this happens

The application permits a workflow-editable URL to influence a server-side request without sufficiently restricting its destination or protecting credentials across trust boundaries. This is a server-side request forgery flaw mapped to CWE-918: an attacker can induce a server to make requests to locations the attacker selects, potentially including internal services or metadata endpoints.

Potential impact

  • An attacker may capture an attached Authorization token.
  • Provider secrets could be read from the vault API if the request reaches it with sufficient authority.
  • Internal services or cloud metadata endpoints could be accessed from the application environment.
  • Exposed credentials or internal data could enable further compromise.

General mitigation guidance

Defensive patterns include:

  • Restricting workflow revision URLs to explicitly approved schemes, hosts, and paths.
  • Using secure-by-default destination policies rather than accepting arbitrary URLs.
  • Avoiding forwarding Authorization tokens to destinations outside their intended trust boundary.
  • Applying network egress controls that block access to internal and metadata addresses unless explicitly required.
  • Limiting the permissions of service credentials and vault access according to least privilege.
  • Treating workspace-editable configuration as untrusted and validating it before making server-side requests.

How teams detect issues like this

  • Use static analysis and code review to identify server-side HTTP requests whose destinations derive from user-editable URLs.
  • Review whether URL validation handles redirects, alternate IP representations, and internal address ranges.
  • Monitor workflow configuration changes and invocation logs for unexpected destinations, especially internal or metadata addresses.
  • Enforce policies that restrict outbound requests to approved destinations and alert on denied or unusual egress.
  • Automated code review tools may help identify URL-fetching paths that forward credentials.

Sources

SourceLink
github.comgithub.com/Agenta-AI/agenta/blob/v0.122.4/api/oss/src/core/workflows/service.py#L785-L805
github.comgithub.com/Agenta-AI/agenta/commit/95fedd72a8b2bab810f80907f58c09f8bb579d94
github.comgithub.com/Agenta-AI/agenta/pull/7530
github.comgithub.com/Agenta-AI/agenta/releases/tag/v0.122.5
github.comgithub.com/Agenta-AI/agenta/security/advisories/GHSA-pr74-8wxx-gj2h
github.comgithub.com/Agenta-AI/agenta/security/advisories/GHSA-wx6j-82pp-wx76
vulncheck.comvulncheck.com/advisories/agenta-before-0.122.5-ssrf-via-workflow-revision-url-leaks-secret-token

Frequently asked

questions

The described attack requires workspace membership with workflow edit rights to set an arbitrary revision URL.

The attacker does not necessarily need direct network access to the server; the server makes the redirected request. The required access is the ability to edit the relevant workflow.

Restrict destinations to explicitly trusted URLs, prevent credentials from being sent across trust boundaries, and limit outbound network access.

Treat configurable URLs as untrusted, validate them against an allowlist, apply egress policies that block sensitive internal destinations, and monitor configuration changes and outbound requests.

Find out what's already
exploitable in your codebase.