/

CVE-2026-125759

Severity:

HIGH RISK

(7.5)

SQL Injection (CWE-89) in Nango Orchestrator API Endpoint

CVE-2026-125759

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Arbitrary SQL execution against the scheduler database

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

Nango's orchestrator API can pass a crafted task group key into a PostgreSQL NOTIFY statement without safely separating data from SQL syntax. An unauthenticated attacker who can reach the affected endpoint may be able to execute arbitrary SQL against the scheduler database.

Affected context

The issue affects Nango deployments using the vulnerable orchestrator implementation, described as present before version 0.71.3. The risky path is the POST /v1/immediate endpoint, where TaskEventsHandler.notify() incorporates a task group key into a PostgreSQL NOTIFY statement. Exposure depends on whether the endpoint is reachable and the database permissions available to the application.

Exploit preconditions

  • Attack surface: The Nango orchestrator API, specifically POST /v1/immediate
  • Required access: The vulnerability is described as unauthenticated; network reachability to the endpoint is still required.
  • Trigger point: Processing a request containing a task group key that reaches TaskEventsHandler.notify()
  • Why exploitation is possible: The key is interpolated into SQL rather than handled strictly as data, allowing crafted input to alter the statement.

Why this happens

This is a SQL injection flaw mapped to CWE-89: Improper Neutralization of Special Elements used in an SQL Command. The underlying insecure pattern is building a database command by interpolating request-controlled input into SQL syntax. If input is not safely parameterized or otherwise constrained, the database may interpret part of that input as executable SQL.

Potential impact

  • An attacker may execute arbitrary SQL within the scheduler database connection's permissions.
  • Database records could be read, changed, or deleted, depending on those permissions.
  • Scheduler data or task processing could be disrupted.
  • Other services that rely on affected database records could experience consequential impact.

General mitigation guidance

Defensive patterns focus on keeping request data separate from SQL syntax:

  • Use parameterized queries or database APIs that safely bind values.
  • Avoid constructing SQL statements through string interpolation or concatenation.
  • Validate task group keys against a narrow, explicit format when the application has such constraints.
  • Apply least-privilege permissions to database accounts and limit access to sensitive scheduler data.
  • Restrict network exposure of orchestrator endpoints and require authentication where appropriate.

How teams detect issues like this

  • Use static analysis to identify SQL statements assembled through string interpolation or concatenation, especially when values originate from API requests.
  • Review database access code paths from POST /v1/immediate through TaskEventsHandler.notify().
  • Monitor database and application logs for unexpected SQL errors, unusual NOTIFY activity, or anomalous scheduler database changes.
  • Enforce code-review and CI policies requiring parameterized database operations for request-derived values.

Sources

SourceLink
github.comgithub.com/NangoHQ/nango/blob/v0.71.1/packages/orchestrator/lib/events.ts#L162
github.comgithub.com/NangoHQ/nango/commit/83f24a5a1ed2db59b6d472e49c25333dc6f28709
github.comgithub.com/NangoHQ/nango/pull/6867
github.comgithub.com/NangoHQ/nango/releases/tag/v0.71.3
github.comgithub.com/NangoHQ/nango/security/advisories/GHSA-8m28-9wcj-v8ww
vulncheck.comvulncheck.com/advisories/nango-before-0.71.3-sql-injection-via-orchestrator-task-group-key

Frequently asked

questions

It may be exploitable remotely when the affected orchestrator endpoint is reachable. The description states that authentication is not required.

The attacker needs network access to POST /v1/immediate; the reported issue does not require authenticated access.

Use parameterized database operations so that task group keys are treated as data, not SQL syntax.

Keep untrusted input out of dynamically assembled SQL, review request-to-database data flows, and apply least-privilege database permissions.

Find out what's already
exploitable in your codebase.