Tinyauth Nginx Forward-Auth Bypass via Spoofed X-Original-URL Header (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-URLis 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 correctX-Forwarded-Host,X-Forwarded-Proto, andX-Forwarded-Uriheaders. - Hunt for forward-auth requests where
X-Original-URLdoes 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.