9.1critical
Tinyauth: Nginx authentication bypass via spoofed X-Original-URL header
- Severity
- 9.1critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.82% (higher than 58% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vx8c-f5hh-c8pf
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tinyauthapp tinyauth | >= 5.0.5, < 5.2.0 | CVE List |
| github.com/tinyauthapp/tinyauth (Go) | from 1.0.1-0.20260314175615-dc3fa58d2187 before 1.0.1-0.20260825140756-847d8325c70b | GitHub Advisory Database |
All scores
| GitHub_M | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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:
proxy_set_header 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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-137182 changed 2026-12-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vx8c-f5hh-c8pf changed 2026-11-30 | CC-BY-4.0 |
| NVD | CVE-2026-137182 changed 2026-12-01 | Public domain |