CVE-2026-82756: CWE-116 Improper Encoding or Escaping of Output in ash-project ash_authentication_oauth2_server
Description
CVE-2026-82756 is an improper encoding or escaping of output vulnerability in ash-project's ash_authentication_oauth2_server. It allows an unauthenticated attacker to inject arbitrary authentication parameters into the WWW-Authenticate challenge header by manipulating tenant data used in the header construction. This affects versions from 0.1.3 up to but not including 0.3.1. The vulnerability can cause clients to follow attacker-controlled authorization server URLs within the authentication challenge. The CVSS 4.0 score is 6.3, indicating medium severity.
CVSS v4.0
Score 6.3medium
Affected software
ash-project
ash_authentication_oauth2_server
ash-project
ash_authentication_oauth2_server
pkg:hex/ash_authentication_oauth2_serverpkg:github/ash-project/ash_authentication_oauth2_servercpe:2.3:a:ash-project:ash_authentication_oauth2_server:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because BearerPlug and RequireScopePlug interpolate a resource_metadata URL derived from the request tenant directly into a quoted value in the WWW-Authenticate challenge header without proper encoding or escaping. In multi-tenant setups where the tenant is set from request-controlled data (such as subdomains or headers), an attacker can craft a tenant value containing a quote character to close the quoted string and inject additional authentication parameters. This injection includes a second resource_metadata URL pointing to an attacker-controlled authorization server, which spec-following clients may trust. The vulnerability does not allow response splitting since carriage returns and line feeds are rejected by Plug. It affects ash_authentication_oauth2_server versions >=0.1.3 and <0.3.1.
Potential Impact
An unauthenticated attacker can inject arbitrary authentication parameters into the WWW-Authenticate header, potentially causing clients to follow malicious authorization server URLs. This can lead to authentication bypass or redirection to attacker-controlled servers in multi-tenant applications that use tenant data from untrusted sources. The impact is limited to the authentication challenge header manipulation and does not include response splitting or direct code execution.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch link is provided in the available data. Until a patch is available, avoid setting the Ash tenant from untrusted request-controlled data or ensure proper encoding and escaping of tenant values before including them in authentication headers.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-08-31T01:00:10.817Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9f4039acd9273b4972ed9b
Added to database: 09/07/2026, 22:52:41 UTC
Last enriched: 09/15/2026, 01:04:44 UTC
Last updated: 10/09/2026, 18:48:23 UTC
Views: 83
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.