# io.micronaut.security:micronaut-security-oauth2 has invalid IdTokenClaimsValidator logic on aud

Advisory record · `GHSA-qw22-8w9r-864h`

- **Identifiers:** `GHSA-qw22-8w9r-864h` · `CVE-2023-36820`
- **State:** Confirmed
- **Severity:** CVSS 4.8 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-284](https://cwe.mitre.org/data/definitions/284.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md)
- **Published:** 5 Oct 2023
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 5 Oct 2023, 20:55 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `io.micronaut.security:micronaut-security-oauth2` (Maven): affected `>=3.11.0, <3.11.1 || >=3.10.0, <3.10.2 || >=3.9.0, <3.9.6 || >=3.8.0, <3.8.4 || >=3.7.0, <3.7.4 || >=3.6.0, <3.6.6 || >=3.5.0, <3.5.3 || >=3.4.0, <3.4.3 || >=3.3.0, <3.3.2 || >=3.2.0, <3.2.4 || >=3.1.0, <3.1.2`; fixed in `3.11.1`, `3.10.2`, `3.9.6`, `3.8.4`, `3.7.4`, `3.6.6`, `3.5.3`, `3.4.3`, `3.3.2`, `3.2.4`, `3.1.2`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 4.8 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0053, the 45th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:18 UTC: First seen by agentprime
- 31 Oct 2026, 14:18 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-qw22-8w9r-864h)

## Sources

- [GitHub Advisory Database: GHSA-qw22-8w9r-864h](https://github.com/advisories/GHSA-qw22-8w9r-864h)
- [OSV: GHSA-qw22-8w9r-864h](https://osv.dev/vulnerability/GHSA-qw22-8w9r-864h)
- <https://github.com/micronaut-projects/micronaut-security/security/advisories/GHSA-qw22-8w9r-864h>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-36820>
- <https://github.com/micronaut-projects/micronaut-security/commit/9728b925221a0d87798ccf250657a3c214b7e980>
- <https://github.com/micronaut-projects/micronaut-security>
- <https://github.com/micronaut-projects/micronaut-security/blob/master/security-oauth2/src/main/java/io/micronaut/security/oauth2/client/IdTokenClaimsValidator.java#L202>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-qw22-8w9r-864h>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-qw22-8w9r-864h/>. Everything for agents: <https://agentprime.io/llms.txt>.
