{"id":"CVE-2026-82756","aliases":["CVE-2026-82756","EEF-CVE-2026-82756","GHSA-2h3v-83jg-2qmm"],"related":[],"kind":"vulnerability","state":"published","title":"ash_authentication_oauth2_server interpolates a tenant-derived value into the WWW-Authenticate challenge without escaping, allowing header parameter injection","summary":"Improper Encoding or Escaping of Output vulnerability in ash-project ash_authentication_oauth2_server allows an unauthenticated attacker to inject arbitrary authentication parameters into the WWW-Authenticate challenge header.\n\nBearerPlug and RequireScopePlug built the Bearer resource_metadata=\"...\" challenge by interpolating a resource_metadata URL derived from the request tenant directly into the quoted value. In a multi-tenant application that sets the Ash tenant from request-controlled data (a subdomain, the Host, a path segment, or a header), a tenant containing a \" closes the quoted value and appends attacker-chosen auth-params, including a second resource_metadata URL pointing at an attacker-controlled authorization server that spec-following clients follow. Carriage returns and line feeds are rejected by Plug, so this is parameter injection within one header, not response splitting.\n\nThis issue affects ash_authentication_oauth2_server: from 0.1.3 before 0.3.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Encoding or Escaping of Output vulnerability in ash-project ash_authentication_oauth2_server allows an unauthenticated attacker to inject arbitrary authentication parameters into the WWW-Authenticate challenge header.\n\nBearerPlug and RequireScopePlug built the Bearer resource_metadata=\"...\" challenge by interpolating a resource_metadata URL derived from the request tenant directly into the quoted value. In a multi-tenant application that sets the Ash tenant from request-controlled data (a subdomain, the Host, a path segment, or a header), a tenant containing a \" closes the quoted value and appends attacker-chosen auth-params, including a second resource_metadata URL pointing at an attacker-controlled authorization server that spec-following clients follow. Carriage returns and line feeds are rejected by Plug, so this is parameter injection within one header, not response splitting.\n\nThis issue affects ash_authentication_oauth2_server: from 0.1.3 before 0.3.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Encoding or Escaping of Output vulnerability in ash-project ash_authentication_oauth2_server allows an unauthenticated attacker to inject arbitrary authentication parameters into the `WWW-Authenticate` challenge header.\n\n`BearerPlug` and `RequireScopePlug` built the `Bearer resource_metadata=\"...\"` challenge by interpolating a `resource_metadata` URL derived from the request tenant directly into the quoted value. In a multi-tenant application that sets the Ash tenant from request-controlled data (a subdomain, the `Host`, a path segment, or a header), a tenant containing a `\"` closes the quoted value and appends attacker-chosen auth-params, including a second `resource_metadata` URL pointing at an attacker-controlled authorization server that spec-following clients follow. Carriage returns and line feeds are rejected by Plug, so this is parameter injection within one header, not response splitting.\n\nThis issue affects ash_authentication_oauth2_server: from 0.1.3 before 0.3.1.\n\n## Configurations\n\nReachable only in a multi-tenant application that derives the Ash tenant from request-controlled input (subdomain, `Host`, path, or header) and uses `BearerPlug` or `RequireScopePlug`; the tenant reaches the challenge through the server's tenant-aware `resource_url`.","format":"markdown","source":"eef"}],"published":"2026-09-07T22:30:55.280Z","modified":"2026-11-25T06:30:09.277Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N"}],"cwes":["CWE-116"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.3","fixed":"0.3.1","status":"affected"}],"vendor":"ash-project","product":"ash_authentication_oauth2_server","package":"ash_authentication_oauth2_server","cpe":"cpe:2.3:a:ash-project:ash_authentication_oauth2_server:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_authentication_oauth2_server","source":"cvelist"},{"ranges":[{"type":"git","introduced":"99de0a1cacb5ef667c4533278b7c81ca98c00231","fixed":"09f97476715da031b136eaec7b2cda2363ad8149","status":"affected"}],"vendor":"ash-project","product":"ash_authentication_oauth2_server","package":"ash-project/ash_authentication_oauth2_server","cpe":"cpe:2.3:a:ash-project:ash_authentication_oauth2_server:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_authentication_oauth2_server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.3","status":"affected","fixed":"0.3.1"}],"ecosystem":"Hex","package":"ash_authentication_oauth2_server","purl":"pkg:hex/ash_authentication_oauth2_server","source":"eef"},{"ranges":[{"type":"git","introduced":"99de0a1cacb5ef667c4533278b7c81ca98c00231","status":"affected","fixed":"09f97476715da031b136eaec7b2cda2363ad8149"}],"repo":"https://github.com/ash-project/ash_authentication_oauth2_server","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash_authentication_oauth2_server/security/advisories/GHSA-2h3v-83jg-2qmm","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-82756.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-82756","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_authentication_oauth2_server/commit/99de0a1cacb5ef667c4533278b7c81ca98c00231","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_authentication_oauth2_server/commit/09f97476715da031b136eaec7b2cda2363ad8149","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_authentication_oauth2_server","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Zach Daniel / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-08T14:43:23.093Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-82756","url":"https://www.cve.org/CVERecord?id=CVE-2026-82756","licence":"CVE Terms of Use","modified":"2026-11-19T08:34:00.511Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-82756","url":"https://osv.dev/vulnerability/EEF-CVE-2026-82756","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:09.277Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-82756","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82756","licence":"Public domain","modified":"2026-11-19T09:18:12.280Z"}],"updatedAt":"2026-11-25T22:59:36.559Z","epss":{"score":0.00378,"percentile":0.33904,"date":"2026-12-01T12:00:22.000Z"}}