Tinyauth: Nginx authentication bypass via spoofed X-Original-URL header
Package Affected versions Patched versions Description Summary Tinyauth's Nginx forward-auth endpoint trusts the client-supplied X-Original-URL header when determining which application's access contr
Package
github.com/tinyauthapp/tinyauth (Go)Affected versions
>= 1.0.1-0.20260314175615-dc3fa58d2187, < 1.0.1-0.20260825140756-847d8325c70bPatched versions
1.0.1-0.20260825140756-847d8325c70bDescription
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
- GHSA-vx8c-f5hh-c8pf
- tinyauthapp/tinyauth#1089
- tinyauthapp/tinyauth@847d832
- https://github.com/tinyauthapp/tinyauth/releases/tag/v5.2.0
Severity
Critical CVSS overall score This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS). / 10CVSS v3 base metrics
Attack vector Network Attack complexity Low Privileges required None User interaction None Scope Unchanged Confidentiality High Integrity High Availability None CVSS v3 base metrics Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability. Attack complexity: More severe for the least complex attacks. Privileges required: More severe if no privileges are required. User interaction: More severe when no user interaction is required. Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope. Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user. Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user. Availability: More severe when the loss of impacted component availability is highest. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NEPSS score
Weaknesses
Weakness CWE-807Reliance on Untrusted Inputs in a Security Decision
The product uses a protection mechanism that relies on the existence or values of an input, but the input can be modified by an untrusted actor in a way that bypasses the protection mechanism. Learn more on MITRE.CVE ID
CVE-2026-137182GHSA ID
GHSA-vx8c-f5hh-c8pfSource code
tinyauthapp/tinyauthCredits
-
MOHITSINGHPAPOLA Reporter
Uh oh!
There was an error while loading. Please reload this page.
See something to contribute? Suggest improvements for this vulnerability.