Tinyauth: Nginx forward-auth authentication bypass via spoofed X-Original-URL header (CVE-2026-137182)
Severity: critical · Patch status: patched · Since 2026-09-07 · CVE-2026-137182
Tinyauth's Nginx forward-auth endpoint (/api/auth/nginx) trusts the client-supplied X-Original-URL header when deciding which application's access controls to enforce. An attacker can send a spoofed header referencing another application's public path to bypass authentication entirely, or reference an application they are legitimately authorized to access to bypass application-specific restrictions. Unauthenticated users and authenticated users with restricted app access can both exploit it. Affected instances are those using the Nginx endpoint with Nginx or Nginx Proxy Manager configurations that do not explicitly overwrite or remove the X-Original-URL header. Fixed in commit 1.0.1-0.20260825140756-847d8325c70b (release v5.2.0). As a temporary mitigation, administrators should set proxysetheader X-Original-URL "" in the Nginx location handling auth requests while ensuring correct X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Uri headers are supplied. No in-the-wild exploitation reported.
What to do
- Upgrade Tinyauth to the fixed version (commit 1.0.1-0.20260825140756-847d8325c70b / release v5.2.0)
- If you cannot upgrade immediately, add proxy_set_header X-Original-URL ""; in the Nginx location handling Tinyauth auth requests
- Verify the reverse proxy supplies correct X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Uri headers
- Review access logs for requests with client-supplied X-Original-URL headers indicating possible bypass attempts
Fixed versions
- 1.0.1-0.20260825140756-847d8325c70b
Sources
All live incidents on Threat Watch