# CVE-2026-82756: Other in ash authentication oauth2 server

> An attacker can inject malicious authentication parameters into the WWW-Authenticate header in multi-tenant setups, potentially redirecting clients to attacker-controlled servers.

- **Severity:** Medium 6.3 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 7 Sep 2026
- **Updated:** 8 Sep 2026
- **Also known as:** EEF-CVE-2026-82756, GHSA-2h3v-83jg-2qmm

## What is CVE-2026-82756?

CVE-2026-82756 is a medium-severity vulnerability in ash-project ash_authentication_oauth2_server, published on 7 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-116 (Improper Encoding or Escaping of Output)

## Which versions are affected by CVE-2026-82756?

1 open source package ship an affected version, including ash_authentication_oauth2_server.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ash_authentication_oauth2_server` | Hex | From 0.1.3 | 0.3.1 |

## How do I fix CVE-2026-82756?

Upgrade ash_authentication_oauth2_server to 0.3.1 or later.

## Is CVE-2026-82756 being exploited?

There is no known exploitation of CVE-2026-82756 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-82756 and fix it if it is affected.

What it is: CVE-2026-82756 is a medium-severity vulnerability in ash-project ash_authentication_oauth2_server, published on 7 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-82756 in the wild and no public exploit code.

Affected packages and fixed versions:
- ash_authentication_oauth2_server (Hex): affected from 0.1.3; fixed in 0.3.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-82756/ (Markdown: https://insights.sbomify.com/CVE-2026-82756/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-82756
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-82756
- OSV: https://osv.dev/vulnerability/CVE-2026-82756

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-82756/
Summaries are generated and may contain mistakes; the official description above is the record.
