CVE-2026-82756 Details
Description
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. 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. This issue affects ash_authentication_oauth2_server: from 0.1.3 before 0.3.1.
A vulnerability in the Ash Project's `ash_authentication_oauth2_server` package, specifically in versions 0.1.3 prior to 0.3.1, allows unauthenticated attackers to inject arbitrary authentication parameters into the `WWW-Authenticate` challenge header. This issue arises from improper encoding of output, where `BearerPlug` and `RequireScopePlug` interpolate tenant-derived `resource_metadata` URLs directly into the header value. In multi-tenant applications that derive the Ash tenant from request-controlled data, an attacker can manipulate the tenant value to inject additional authentication parameters, including a second `resource_metadata` URL pointing to an attacker-controlled authorization server. The vulnerability is limited to a single header injection and does not involve response splitting, as carriage returns and line feeds are blocked by Plug.
Users can update to `ash_authentication_oauth2_server` version 0.3.1 or later, where this vulnerability has been fixed. The patch involves routing all challenge building through a shared function that properly escapes quoted-string values, in accordance with RFC 7235.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 7, 2026CISA-ADP
Assessed Sep 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | EEF |
Affected Products
| Product | Versions |
|---|---|
| ash-project ash_authentication_oauth2_server | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 19, 2026 | CVE Modified | EEF |
| Sep 8, 2026 | CVE Modified | CISA-ADP |
| Sep 7, 2026 | New CVE Received | EEF |
Volerion