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.

This story currently rests on a single source, the GitHub advisory. We found no independent write-up, and the advisory does not say whether the flaw has been used in attacks. Treat the details below as the maintainers' account, not as independently verified.

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.

The advisory says its mitigation fits configurations that use the X-Forwarded-Host, X-Forwarded-Proto and X-Forwarded-Uri headers, not configurations that require a proxy-generated X-Original-URL.

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.

Search Nginx configuration for X-Original-URL handling (run on the proxy host)Shell
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

  1. Find every Nginx or Nginx Proxy Manager host that sends auth requests to Tinyauth's /api/auth/nginx endpoint.
  2. Update Tinyauth to 1.0.1-0.20260825140756-847d8325c70b or later (the advisory also references release v5.2.0).
  3. Until the update is live, add the mitigation directive to the Nginx location that handles Tinyauth auth requests.
  4. Check that the proxy still sends correct X-Forwarded-Host, X-Forwarded-Proto and X-Forwarded-Uri headers.
  5. Test the configuration, reload Nginx, then confirm protected apps still ask for a login and restricted apps stay restricted.
  6. 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:

Clear the client-supplied header in the Tinyauth auth location (from the advisory)Nginx config
proxy_set_header X-Original-URL "";
Caution. Reloading Nginx applies changes to live traffic, so validate the configuration with nginx -t first. Use this mitigation only if your setup relies on the X-Forwarded-* headers; the advisory says it does not apply where a proxy-generated X-Original-URL is required, and clearing the header there could break authentication.

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.

Test the Nginx configuration, then reload it (run on the proxy host)Shell
sudo nginx -t && sudo systemctl reload nginx
Tip. Treat the header override as a stopgap. The update fixes the trust problem inside the application itself, so do both instead of relying on proxy configuration alone.

Detection 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.

  1. CVE-2026-137182 - GitHub Advisory Databasegithub.com
  • Tinyauth
  • Nginx
  • authentication bypass
  • reverse proxy
  • CVE-2026-137182