Skip to content
← Blog · · df00tech

Tinyauth Nginx Forward-Auth Bypass via Spoofed X-Original-URL Header (CVE-2026-137182)

breaking ghsa go CVE-2026-137182

A new GitHub Security Advisory (GHSA-vx8c-f5hh-c8pf, CVE-2026-137182, CVSS 9.1) discloses an authentication bypass in Tinyauth's Nginx forward-auth integration.

What was reported

Tinyauth's /api/auth/nginx endpoint is used by Nginx and Nginx Proxy Manager for forward-auth checks. It trusts the client-supplied X-Original-URL header to decide which application's access policy to enforce. This header is attacker-controlled unless the proxy strips it. As a result, a request can reference a different application's path than the one actually being accessed.

Why it matters

According to the advisory, an attacker can bypass authentication entirely by pointing X-Original-URL at a public application path. An attacker can also bypass per-application access restrictions by referencing an app they are already authorized to use. The advisory states that both unauthenticated users and authenticated users with restricted access may exploit this. Any deployment running Tinyauth's Nginx forward-auth flow without clearing or overwriting the client-supplied header is affected. This is a reverse-proxy trust-boundary issue, not a credential or session flaw.

What defenders should do now

  • Review Nginx and Nginx Proxy Manager configs in front of Tinyauth. Confirm whether X-Original-URL is set by the proxy itself or passed through from the client.
  • Apply the vendor's documented mitigation. Add proxy_set_header X-Original-URL ""; in the location block handling Tinyauth auth requests. Continue to supply correct X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Uri headers.
  • Hunt for forward-auth requests where X-Original-URL does not match the expected upstream path for a given Host, or where the header appears in raw client requests at all.
  • Audit access logs for successful auth-proxy responses immediately before access to applications a given session should not be authorized for.

This is a same-day advisory. The exploit status is currently assessed as theoretical, with no known in-the-wild use reported. Refer to the original GHSA advisory for authoritative updates: GHSA-vx8c-f5hh-c8pf.

Get new detections in your inbox

New ATT&CK coverage plus CISA KEV / CVE detection rules, roughly weekly. No spam, unsubscribe anytime.