cvelo
P2 · HighCVSS 9.1EPSS 0.8%

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

  • CVE-2026-137182
  • GHSA-vx8c-f5hh-c8pf
  • EUVD-2026-139626

Description

Show the whole description

**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 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`. **Patched release** Upgrade Tinyauth deployments to [v5.2.0](https://github.com/tinyauthapp/tinyauth/releases/tag/v5.2.0) or later. The `v5.2.0` release notes list [the fix](https://github.com/tinyauthapp/tinyauth/pull/1089).

Text from the GitHub Advisory record.

Affected

  • steveiliop56 tinyauth

    • from 5.0.5 to before 5.2.0
  • github.com/tinyauthapp/tinyauthGo

    • from 1.0.1-0.20260314175615-dc3fa58d2187, fixed in 1.0.1-0.20260825140756-847d8325c70b

Product versions from the ENISA EUVD record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.