CVE-2026-137182: Tinyauth: Nginx authentication bypass via spoofed X-Original-URL header

Published Nov 30, 2026
·
Updated

Summary

Tinyauth's Nginx forward-auth endpoint trusts the client-supplied X-Original-URL header when determining which application's access controls to enforce. This allows an attacker to bypass authentication by referencing another application's public path or bypass application-specific access restrictions by referencing an application they are authorized to access.

Who is impacted

Instances using Tinyauth's /api/auth/nginx endpoint with Nginx or Nginx Proxy Manager configurations that do not explicitly overwrite or remove the X-Original-URL header. Both unauthenticated users and authenticated users with restricted application access may exploit this vulnerability.

Temporary mitigation

Administrators should configure Nginx to remove the client-supplied X-Original-URL header before forwarding authorization requests to Tinyauth.

Add the following directive inside the Nginx location handling Tinyauth authentication requests:

nginx proxysetheader X-Original-URL "";

Ensure that the reverse proxy continues to supply the correct X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Uri headers. This mitigation applies to configurations using these forwarded headers rather than those that require a proxy-generated X-Original-URL.

Other sources

Tinyauth is an authentication and authorization server. From 5.0.5 until 5.2.0, the /api/auth/nginx endpoint trusts a client-supplied X-Original-URL header when selecting application access controls in Nginx or Nginx Proxy Manager configurations that do not overwrite or remove that header. An unauthenticated attacker can reference another application's public path to bypass authentication, and a restricted authenticated user can reference an authorized application to bypass application-specific restrictions. This issue is fixed in version 5.2.0.

— MITRE

Affected Software

2 affected componentsFixes available
Tinyauth Tinyauth>=5.0.5<5.2.0
go/github.com/tinyauthapp/tinyauth>=1.0.1-0.20260314175615-dc3fa58d2187<1.0.1-0.20260825140756-847d8325c70b
1.0.1-0.20260825140756-847d8325c70b

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/tinyauthapp/tinyauth to a version that resolves this vulnerability.

    Fixed in 1.0.1-0.20260825140756-847d8325c70b
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.2.0
  3. Configuration

    Add `proxy_set_header X-Original-URL "";` inside the Nginx location handling Tinyauth authentication requests to remove the client-supplied header before forwarding authorization requests.

    Nginx X-Original-URL

Event History

Nov 30, 2026
CVE Published
via MITRE·05:59 PM
Data Sourced
via MITRE·05:59 PM
DescriptionSeverityWeakness
Advisory Published
via OSV·06:03 PM
Data Sourced
via OSV·06:03 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this bypass?

Tinyauth deployments using the /api/auth/nginx endpoint behind Nginx or Nginx Proxy Manager are exposed if those proxies do not overwrite or remove client-supplied X-Original-URL headers. The affected Tinyauth versions are 5.0.5 through versions before 5.2.0.

2

What access does an attacker need to exploit the issue?

An unauthenticated attacker can exploit it by supplying an X-Original-URL value that references another application's public path. A user authenticated with restricted access can also exploit it by referencing an application they are authorized to access, bypassing application-specific restrictions.

3

What should be done if upgrading cannot happen immediately?

Configure Nginx or Nginx Proxy Manager to remove or overwrite any client-supplied X-Original-URL header before requests reach Tinyauth. Upgrade Tinyauth to version 5.2.0 when possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203