On this page (6 sections)
Tinyauth is a Go-based authentication service that sits behind a reverse proxy. According to a GitHub Advisory, its Nginx forward-auth endpoint has a critical weakness: to work out which application a request targets, it reads an X-Original-URL header that the visitor is able to set. A request can end up being judged against a different application than the one it is really heading to.
If you protect internal tools, dashboards or self-hosted apps with Tinyauth behind Nginx or Nginx Proxy Manager, review your setup now. The advisory includes a one-line Nginx mitigation you can use while you schedule the update.
What happened
The advisory was published on Sep 7, 2026 in the tinyauthapp/tinyauth repository and last updated on Nov 30, 2026. It credits a reporter using the handle MOHITSINGHPAPOLA and links to an upstream issue (tinyauthapp/tinyauth#1089), a fix commit (847d832) and a release tagged v5.2.0.
How the bypass works
With forward authentication, Nginx holds each incoming request and asks an auth service whether the visitor may continue. For a useful answer, that service has to know which application and path were requested.
Per the advisory, Tinyauth obtains this from X-Original-URL, and any client can send that header on its own. Basing an access decision on a value an outsider controls is the weakness class CWE-807, reliance on untrusted inputs in a security decision.
The advisory describes two outcomes:
- Someone who is not logged in can pass authentication by naming a different application's public path.
- A logged-in user with limited rights can step around per-application restrictions by naming an application they are allowed to use.
The CVSS v3.1 vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. In plain terms: reachable over the network, low complexity, no privileges and no user interaction needed, with high impact on confidentiality and integrity and none on availability.
Who is affected
Per the advisory, the issue touches instances that use Tinyauth's /api/auth/nginx endpoint with Nginx or Nginx Proxy Manager configurations that never explicitly overwrite or remove X-Original-URL, running a version inside the affected range. Both unauthenticated visitors and authenticated users with restricted access could abuse it.
Our own reading, not a statement from the advisory: the risk is probably highest where one Tinyauth instance guards several apps, some with public paths and some restricted, because mixing up two apps is what the flaw allows.
How to check your exposure
Start by confirming which Tinyauth build you run. The affected range is expressed as Go module pseudo-versions, so compare your version with it carefully. Then check whether your proxy configuration handles the header.
This read-only command searches the Nginx configuration directory for any mention of the header. Run it on the proxy host and look for a proxy_set_header X-Original-URL line inside the location that handles Tinyauth auth requests. Change the path if your configuration lives elsewhere, for example inside a Nginx Proxy Manager container.
grep -rn "X-Original-URL" /etc/nginx/If nothing in the auth location overwrites the header and you use /api/auth/nginx, consider the instance exposed until it is updated or mitigated.
What to do now
- Find every Nginx or Nginx Proxy Manager host that sends auth requests to Tinyauth's /api/auth/nginx endpoint.
- Update Tinyauth to 1.0.1-0.20260825140756-847d8325c70b or later (the advisory also references release v5.2.0).
- Until the update is live, add the mitigation directive to the Nginx location that handles Tinyauth auth requests.
- Check that the proxy still sends correct X-Forwarded-Host, X-Forwarded-Proto and X-Forwarded-Uri headers.
- Test the configuration, reload Nginx, then confirm protected apps still ask for a login and restricted apps stay restricted.
- Review access logs for unexpected successful requests to protected apps, and rotate secrets for sensitive apps if you see signs of misuse.
The advisory's temporary mitigation removes the client-supplied header before the request reaches Tinyauth. Put this directive inside the Nginx location that handles Tinyauth authentication requests:
proxy_set_header X-Original-URL "";This pair of standard commands validates the configuration and, only if it is valid, reloads Nginx on a systemd host. Run it on the proxy host and expect nginx -t to report that the syntax is ok.
sudo nginx -t && sudo systemctl reload nginxDetection and monitoring
Since abuse hinges on a request header, review Nginx access logs and Tinyauth logs for requests to protected apps that succeeded without a normal login. Temporarily logging the X-Original-URL value on the auth location can also show whether clients are sending it at all.
Afterwards, keep watching your exposed hostnames. A security headers check and regular scans of your verified sites can reveal when something that should be protected starts responding differently. For background on filtering layers in front of apps, see what a WAF is.
Treat any authentication gateway as a high-value component: limit who can reach the Tinyauth endpoint directly, keep it on a patch schedule, and test how public and restricted apps behave together before you depend on them.
Sources
This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.
