{"id":"GHSA-vx8c-f5hh-c8pf","summary":"Tinyauth: Nginx authentication bypass via spoofed X-Original-URL header","details":"**Summary**\n\nTinyauth'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.\n\n**Who is impacted**\n\nInstances 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.\n\n**Temporary mitigation**\n\nAdministrators should configure Nginx to remove the client-supplied `X-Original-URL` header before forwarding authorization requests to Tinyauth.\n\nAdd the following directive inside the Nginx location handling Tinyauth authentication requests:\n\n```nginx\nproxy_set_header X-Original-URL \"\";\n```\n\nEnsure 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`.","aliases":["CVE-2026-137182"],"modified":"2026-11-30T18:15:04.296504318Z","published":"2026-11-30T18:03:20Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-807"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2026-11-30T18:03:20Z"},"references":[{"type":"WEB","url":"https://github.com/tinyauthapp/tinyauth/security/advisories/GHSA-vx8c-f5hh-c8pf"},{"type":"WEB","url":"https://github.com/tinyauthapp/tinyauth/pull/1089"},{"type":"WEB","url":"https://github.com/tinyauthapp/tinyauth/commit/847d8325c70b64775fdeaf61343c75fdac855009"},{"type":"PACKAGE","url":"https://github.com/tinyauthapp/tinyauth"},{"type":"WEB","url":"https://github.com/tinyauthapp/tinyauth/releases/tag/v5.2.0"}],"affected":[{"package":{"name":"github.com/tinyauthapp/tinyauth","ecosystem":"Go","purl":"pkg:golang/github.com/tinyauthapp/tinyauth"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.1-0.20260314175615-dc3fa58d2187"},{"fixed":"1.0.1-0.20260825140756-847d8325c70b"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-vx8c-f5hh-c8pf/GHSA-vx8c-f5hh-c8pf.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"}]}