Tinyauth and X-Original-URL: forward authentication needs a trusted URL identity
CVE-2026-137182 affects Tinyauth from 5.0.5 through 5.1.3. The /api/auth/nginx forward-auth endpoint trusts the client-supplied X-Original-URL header when selecting which application's access controls to enforce.
A header is not an application identity
In an Nginx forward-auth deployment, the proxy asks Tinyauth whether the current request should proceed. Tinyauth needs to know which protected application is involved. If it derives that identity from a header the client can set, an attacker can point the authorization decision at a public application while sending the request to a different protected backend.
An unauthenticated attacker can use this path to bypass authentication. A restricted authenticated user can also reference an application they are allowed to use and bypass restrictions on another application. Tinyauth scores the issue Critical with CVSS 3.1 score 9.1.
Fix the proxy and the verifier
Upgrade to Tinyauth 5.2.0 or later. Then inspect the Nginx or Nginx Proxy Manager configuration. The vendor's temporary mitigation is:
proxy_set_header X-Original-URL "";
Place it in the location that forwards authentication requests to Tinyauth. Continue to supply the trusted X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Uri headers required by the deployment. If the architecture depends on a proxy-generated X-Original-URL, review that path carefully before using the empty-header mitigation.
Review the trust chain
List every protected host and the application identity Tinyauth associates with it. Confirm that the identity comes from proxy configuration, a signed mapping, or another trusted source. Reject client-supplied copies of the same header at the outer edge.
Search access logs for requests where X-Original-URL referred to a public path but the destination was a protected host. Correlate the proxy request ID with Tinyauth's decision and the backend's response. Review sessions that touched sensitive applications during the exposure window.
Verification
After the upgrade, send a request with a forged X-Original-URL to a protected host and confirm that the proxy removes it and the verifier still selects the correct application policy. Test both unauthenticated and restricted-user cases.
Top comments (0)