By NHI Mgmt Group Editorial TeamDomain: Breaches & IncidentsSource: Gecko SecurityPublished April 8, 2026

TL;DR: April 2026 brought critical SQL injection CVEs in Kestra, OpenProject, and PraisonAI, while JSON payloads, second-order injection, and ORM escape hatches bypassed WAFs from Palo Alto, AWS, Cloudflare, F5, and Imperva, according to Gecko Security. The practical lesson is that signature-based detection and parameterized-by-default frameworks still fail when query logic, validation, and authorisation split across services.


At a glance

What this is: Three April 2026 SQL injection CVEs show how attackers bypass WAFs, exploit ORM escape hatches, and trigger second-order injection in modern application stacks.

Why it matters: IAM, application security, and platform teams need to treat authentication flow integrity and query construction as governance problems, because injection flaws can expose privileged data and break identity-dependent controls.

By the numbers:

👉 Read Gecko Security's analysis of the April 2026 SQL injection CVEs and WAF bypasses


Context

SQL injection remains a control failure as much as a coding flaw. The core issue is not whether parameterized queries exist in a framework, but whether input validation, authorisation checks, and query execution are aligned at the point where data is finally used. In practice, that gap becomes visible in authentication flows, raw query methods, and stored payloads that only become dangerous later.

This matters beyond application security because SQLi often lands in systems that sit close to identity, privilege, and operational records. When database access is exposed through compromised authentication logic or unsafe ORM paths, teams inherit an identity problem as well as a vulnerability problem. That is typical of modern web stacks, where trusted abstractions hide the real attack surface.


Key questions

Q: What breaks when SQL injection reaches authentication flows?

A: Authentication breaks when the application treats a database response as proof of identity rather than one step in the verification chain. A single always-true condition or comment truncation can turn a credential check into a success path, exposing sessions, accounts, and downstream admin functions that should never have been reachable.

Q: Why do WAFs miss some modern SQL injection attacks?

A: WAFs miss them when they rely on signatures that do not understand the request format the application actually uses. JSON bodies, encoding tricks, mixed case keywords, and inline comments can preserve the malicious intent while changing the syntax enough to evade pattern matching. Inspection has to understand structure, not just strings.

Q: How do teams know whether ORM defaults are really protecting them?

A: Teams know by testing the full execution path, not by assuming parameterisation covers every case. Raw query methods, custom filters, and nested objects can bypass the safe path and push user input into SQL structure. If a developer can opt out of the protection layer, the framework is only partially helping.

Q: Which controls matter most for second-order SQL injection and delayed execution?

A: The most important controls are end-to-end data flow tracing, strict validation at reuse points, and monitoring for stored values that later become query syntax. Second-order SQLi succeeds because the payload looks safe when entered and malicious only when reused, so point-in-time scanning is not enough.


Technical breakdown

Why authentication flow SQLi bypasses still work

Authentication bypass via SQL injection succeeds when the application trusts a database response more than it trusts the user journey. Classic payloads such as always-true conditions, comment truncation, and type coercion abuse collapse the WHERE clause so the database returns a valid row even when the supplied credentials are fake. The technical failure is not SQL syntax alone. It is a broken assumption that login validation and database evaluation will always stay aligned. Once a query returns truthy output to the wrong caller, the application has already converted an input flaw into unauthorised access.

Practical implication: review login, reset, and token verification paths for any query that can return success without a real identity assertion.

How WAF signature rules miss JSON and encoding variants

Signature-based WAFs work by matching known attack strings, so they are vulnerable whenever the payload shape changes faster than the rule set. JSON-wrapped SQL, mixed-case keywords, inline comments, and double encoding all preserve the database meaning while breaking simple pattern detection. The deeper issue is parsing mismatch: the WAF inspects one representation of the request, while the application and database interpret another. If the security layer does not understand the same syntax and nesting as the backend, it becomes a filter for familiar noise rather than a control for real intent.

Practical implication: validate whether your WAF parses the same request structures your API actually accepts, especially JSON bodies and encoded parameters.

Second-order SQLi and ORM escape hatches create delayed execution

Second-order SQL injection stores a payload in a seemingly harmless form, then executes it later when another service reads and reuses the value. That makes the attack invisible to tools that only inspect the entry request. ORM escape hatches such as raw query methods reintroduce injection risk because they move control back to developer-written SQL, often far from the original validation point. The architectural pattern is the same in both cases: data is treated as safe during ingestion and unsafe only after it has crossed enough layers to evade ownership and inspection.

Practical implication: trace every field from ingestion to final query execution, including raw methods, nested filters, and cross-service data reuse.


Threat narrative

Attacker objective: The attacker wants to turn input control failures into unauthorised database access, privilege escalation, and downstream exposure of sensitive application and identity data.

  1. Entry occurs through unauthenticated or lightly authenticated request paths where the attacker supplies SQLi payloads in login, API, or JSON fields.
  2. Credential access or query manipulation follows when the payload changes query logic, returns trusted rows, or reaches a raw database sink through an ORM escape hatch.
  3. Impact occurs when the attacker reads, alters, or escalates into the underlying database, exposing project data, user records, or management functions.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

SQL injection in 2026 is increasingly an identity-adjacent governance failure, not just an input-validation defect. When attacks succeed through authentication flows, management APIs, or database-backed control planes, the result is often unauthorised access to systems that define who can do what. That pushes the problem into IAM, PAM, and application governance territory, where query trust becomes access trust. Practitioners should treat login and authorisation paths as part of the identity attack surface.

JSON-based bypasses expose a query parsing gap between security tooling and application reality. WAFs that cannot interpret the same body formats and nested structures as the application are blind to attacks that remain syntactically valid after transformation. This is not a tuning issue alone. It shows that detection design still assumes a flat request model while modern APIs use structured payloads. The practical conclusion is to align inspection with real request semantics, not just signature coverage.

ORM safety creates dangerous false confidence when teams rely on defaults instead of execution paths. Parameterised queries lower risk, but raw query methods, dynamic filters, and second-order sinks can reintroduce the same vulnerability class inside otherwise safe frameworks. This is a governance problem because developers often believe the framework has already made the decision for them. Security teams should verify where the framework stops protecting and where custom logic starts.

Second-order SQLi is the clearest example of trust being misplaced across service boundaries. A value can enter clean, survive validation, and only become malicious when another service reuses it in a later query. That means ownership of security cannot stop at the first ingest point. For practitioners, the real control gap is end-to-end data flow governance across microservices and database sinks.

AI-assisted code generation may be widening the SQLi surface faster than teams can review it. If only a small fraction of AI-generated features meet security standards, then more query logic is entering production with hidden injection paths and weak review. That increases the importance of semantic analysis, review of raw query escapes, and controls that inspect application behaviour rather than just source syntax. The discipline now has to govern how code is produced as well as how it runs.

From our research:

What this signals

Query trust has become an identity control problem. When authentication, authorisation, and database execution drift apart, the programme loses the ability to reason about who or what actually received access. Security teams should treat database-backed control paths as part of the identity architecture and validate them against the same governance standards used for privileged access.

Semantic analysis is now more valuable than string-based inspection for application risk management. The next wave of SQLi exposure will keep exploiting structured payloads, second-order sinks, and raw query exceptions that simple scanners cannot understand. That means application security leaders need to combine code review, runtime telemetry, and service-mesh visibility, then anchor the programme in controls that follow data across boundaries.

SQLi and NHI risk increasingly overlap where application databases store secrets, tokens, or session material. If a vulnerable query path exposes those records, the blast radius extends beyond the app itself into privileged access and non-human identity compromise. For teams managing secrets and workload identities, that means database compromise should be triaged as an identity incident as well as an application incident.


For practitioners

  • Review authentication queries for bypass paths Inspect every login, reset, and token validation query for always-true logic, comment truncation, and error handling that can return success without proving identity. Focus on flows where the application trusts database truth instead of explicit authentication state.
  • Validate WAF coverage against structured payloads Test the WAF with the exact JSON, encoding, and nested parameter formats your APIs accept, then confirm whether it parses request bodies the same way the application does. Prioritise endpoints that handle authentication or privileged data.
  • Eliminate raw query escape hatches where possible Inventory whereRaw(), $queryRaw, query(), and similar methods in your codebase, then require justification and review for every use. If a team needs those methods, mandate per-call input handling and logging that makes the sink visible.
  • Trace second-order sinks across service boundaries Map each user-controlled field from ingestion to the final database query, including message queues, background jobs, and downstream services that reuse stored values. Treat any stored field that later becomes SQL as a security boundary, not application convenience.
  • Add behavioural detection for blind SQLi Monitor for timing anomalies, repeated boolean probes, and unusual query latency patterns that indicate blind extraction rather than obvious error-driven attacks. Pattern matching alone will miss attacks that never return a visible payload.

Key takeaways

  • The April 2026 SQLi CVEs show that modern injection risk now lives in authentication flows, API layers, and ORM escape hatches.
  • Signature-based WAFs and default framework protections still fail when payloads are structured, delayed, or reused across services.
  • Teams need end-to-end query tracing, structured-payload testing, and explicit review of raw database access paths to reduce exposure.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKTA0006 , Credential Access; TA0008 , Lateral MovementSQLi often enables credential theft and lateral movement through privileged application paths.
NIST CSF 2.0PR.AC-1Authentication bypass and unsafe query logic undermine access control outcomes.
NIST SP 800-53 Rev 5AC-6Least privilege limits how far a successful SQLi can move inside backend systems.
CIS Controls v8CIS-16 , Application Software SecurityThis article focuses on application-layer flaws and verification gaps in deployed code.
OWASP Non-Human Identity Top 10NHI-03Database compromise can expose secrets, tokens, and non-human identity material.

Map exploitable query paths to credential access and lateral movement techniques, then close the highest-value database sinks first.


Key terms

  • Second-order SQL injection: Second-order SQL injection is when a malicious payload is stored safely at first, then executes later when another query reuses the value. The flaw appears at the reuse point, not the entry point, which makes it harder to detect with request-time filters and ordinary signature-based scanning.
  • Raw query escape hatch: A raw query escape hatch is an ORM or framework method that lets developers bypass parameterised defaults and write custom SQL directly. These methods are useful for complex logic, but they also reintroduce injection risk if user-controlled data reaches the query string without strict handling.
  • Semantic Analysis: Semantic analysis is the process of understanding how code behaves in context rather than only matching known patterns. In security review, it helps surface logic flaws, trust-boundary issues, and access problems that signature-based tools often miss.
  • WAF signature matching: WAF signature matching is a detection method that blocks requests based on known malicious patterns. It is effective against familiar payloads, but it struggles when attackers change syntax, encoding, or structure in ways that preserve the attack while hiding it from static rules.

What's in the full article

Gecko Security's full article covers the operational detail this post intentionally leaves for the source:

  • Reproduction details for each April 2026 CVE, including the exact request patterns and affected endpoints.
  • WAF bypass examples showing how JSON, encoding, and comment-based payloads evade signature rules.
  • ORM-specific sink patterns such as raw query methods, nested filters, and second-order execution paths.
  • Semantic analysis guidance for tracing data across microservices and database calls.

👉 Gecko Security's full article covers the CVE details, bypass patterns, and detection gaps in depth.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, workload identity, and secrets management. It helps practitioners connect identity controls to the broader security programmes that depend on them.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org