{"id":"CVE-2026-137182","aliases":["CVE-2026-137182","GHSA-vx8c-f5hh-c8pf"],"related":[],"kind":"vulnerability","state":"published","title":"Tinyauth: Nginx authentication bypass via spoofed X-Original-URL header","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"**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`.","format":"markdown","source":"ghsa"}],"published":"2026-11-30T17:59:40.871Z","modified":"2026-12-01T14:18:12.630Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-807"],"affected":[{"ranges":[{"version":">= 5.0.5, < 5.2.0","status":"affected"}],"vendor":"tinyauthapp","product":"tinyauth","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.1-0.20260314175615-dc3fa58d2187","status":"affected","fixed":"1.0.1-0.20260825140756-847d8325c70b"}],"ecosystem":"Go","package":"github.com/tinyauthapp/tinyauth","purl":"pkg:golang/github.com/tinyauthapp/tinyauth","source":"ghsa"}],"references":[{"url":"https://github.com/tinyauthapp/tinyauth/security/advisories/GHSA-vx8c-f5hh-c8pf","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tinyauthapp/tinyauth/pull/1089","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tinyauthapp/tinyauth/commit/847d8325c70b64775fdeaf61343c75fdac855009","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tinyauthapp/tinyauth/releases/tag/v5.2.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tinyauthapp/tinyauth","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-12-01T13:19:06.630Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-137182","url":"https://www.cve.org/CVERecord?id=CVE-2026-137182","licence":"CVE Terms of Use","modified":"2026-12-01T13:19:24.749Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vx8c-f5hh-c8pf","url":"https://github.com/advisories/GHSA-vx8c-f5hh-c8pf","licence":"CC-BY-4.0","modified":"2026-11-30T18:15:04.296Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-137182","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137182","licence":"Public domain","modified":"2026-12-01T14:18:12.630Z"}],"updatedAt":"2026-12-01T14:32:16.506Z","epss":{"score":0.00824,"percentile":0.58483,"date":"2026-12-01T12:00:22.000Z"}}