/

CVE-2026-65604

Severity:

HIGH RISK

(8.2)

Input Validation Flaw (CWE-20) in Skipper OPA Bridge

CVE-2026-65604

Deferred

Vulnerability type

Category:

Input Validation

CWE:

CWE-20

Impact:

Policy Bypass / Authorization Enforcement Failure

Severity:

HIGH RISK

(8.2)

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

Skipper contains an input validation flaw where oversized HTTP request bodies bypass Open Policy Agent (OPA) deny-on-presence Rego policies.

When the body exceeds the configured maxBodyBytes limit, OPA evaluates an empty parsed_body while Skipper still forwards the full payload upstream, allowing requests that should be denied based on body content to be processed.

Affected context

This vulnerability occurs in deployments that integrate Skipper with Open Policy Agent for request-body-based authorization controls.

It is relevant when:

  • Rego policies depend on parsed_body content (e.g., deny-on-presence of specific fields or payloads)
  • Skipper is configured with a maxBodyBytes limit for incoming HTTP requests
  • Upstream services trust Skipper/OPA to enforce body-level access rules

Under these conditions, oversized payloads can bypass body-based policy checks while still reaching protected upstream endpoints.

Exploit preconditions

  • Attack surface: HTTP endpoints fronted by Skipper and protected by OPA policies inspecting request bodies.
  • Required access: Ability to send crafted HTTP requests to Skipper, including bodies larger than the configured maxBodyBytes limit.
  • Trigger point: Submission of an oversized request body to a route where Rego policies use parsed_body for deny-on-presence or content-based checks.
  • Why exploitation is possible: Skipper enforces a size limit during parsing for OPA but still forwards the full body upstream; OPA evaluates an empty parsed_body, so body-dependent policies are never invoked, effectively skipping authorization logic tied to payload content.

Why this happens

The underlying bug aligns with CWE-20: Improper Input Validation, specifically in how Skipper validates and processes request bodies for policy evaluation.

The system enforces a size limit for the body when constructing parsed_body for OPA, but does not ensure that the same constraint or outcome is applied to the forwarded payload.

This creates a split-brain situation where:

  • OPA sees an empty or truncated body and evaluates policies accordingly.
  • The upstream service receives the full oversized payload.

The abstract insecure pattern is inconsistent input handling across trust boundaries: policy engines operate on sanitized or reduced input, while downstream components act on the original, unvalidated data, allowing authorization decisions to be made on a different view of the request than what is actually executed.

Potential impact

  • Requests that should be denied based on body content may proceed unchecked.
  • Attackers can perform forbidden operations by embedding disallowed fields or payloads in oversized bodies.
  • Authorization rules relying on deny-on-presence semantics can be systematically bypassed.
  • Upstream APIs or microservices can be manipulated or misused despite apparent policy enforcement.
  • Defense-in-depth assumptions around Skipper/OPA integration can be undermined.

General mitigation guidance

Effective mitigation focuses on aligning input validation and policy evaluation with how data is forwarded to upstream services.

Recommended patterns include:

  • Ensuring that any request whose body exceeds maxBodyBytes is rejected at the gateway layer instead of forwarded.
  • Designing Rego policies to treat missing or empty parsed_body as a conservative failure case for routes that require strict body checks.
  • Applying consistent body size limits and validation rules at both the gateway and upstream service layers, so authorization decisions are always made on the same data that is processed.
  • Reducing reliance on implicit deny-on-presence policies tied to parsed_body alone and incorporating additional contextual checks (headers, method, path) where feasible.
  • Implementing least-privilege semantics in upstream services, assuming that gateway policies may fail, and requiring explicit validation of critical body fields before performing sensitive actions.

How teams detect issues like this

Detection typically involves confirming whether policy evaluation and request forwarding operate on consistent inputs:

  • Static and configuration analysis: Review Skipper route configs and OPA/Rego policies to identify rules relying on parsed_body, especially deny-on-presence checks, and verify how maxBodyBytes is configured.
  • Code and policy review: Look for authorization logic that assumes parsed_body is always populated and does not handle oversized or missing bodies, as well as gateway code that forwards requests despite parse failures.
  • Testing and fuzzing: Send requests with bodies just below and above maxBodyBytes to protected endpoints, observing whether upstream behavior diverges from expected Rego decisions.
  • Observability and logging: Enable detailed logs on Skipper and OPA to correlate policy decisions (including parsed_body state) with upstream request handling, flagging cases where OPA sees empty bodies while services receive full payloads.
  • Automated policy checks: Use policy-as-code tools or CI pipelines to enforce best practices such as failing closed on missing parsed_body and requiring explicit handling of oversized bodies.

Sources

SourceLink
github.comgithub.com/zalando/skipper/security/advisories/GHSA-8qqm-fp2q-v734
vulncheck.comvulncheck.com/advisories/skipper-incomplete-fix-for-cve-2026-50197-policy-bypass

Frequently asked

questions

Exploitability depends on whether your Rego policies rely on request body content to enforce denials. If policies use deny-on-presence or payload-based checks and Skipper enforces a maxBodyBytes limit, any endpoint exposed through this pattern can be targeted with oversized bodies to bypass those rules.

An attacker only needs the ability to send HTTP requests to Skipper-managed endpoints. No special privileges are required beyond network access, as the vulnerability stems from how oversized bodies are parsed for OPA versus forwarded to upstream services.

The safest approach is to ensure that any request body that cannot be fully parsed for policy evaluation is not forwarded at all. Gateway components should reject oversized or malformed bodies with a clear error, and authorization policies should treat missing or empty parsed_body as a failure condition, not a benign state.

Prevention involves designing gateway and policy integrations so all components make decisions on the same validated data: enforce consistent size limits, validate bodies before forwarding, adopt fail-closed semantics for policy evaluation, and regularly test with edge-case inputs (including oversized payloads) to ensure that policy results match upstream behavior.

Find out what's already
exploitable in your codebase.