# Microsoft ASP.NET Core project templates vulnerable to denial of service

Advisory record · `GHSA-59j7-ghrg-fj52`

- **Identifiers:** `GHSA-59j7-ghrg-fj52` · `BIT-dotnet-2024-21319` · `BIT-dotnet-sdk-2024-21319` · `CVE-2024-21319`
- **State:** Confirmed
- **Severity:** CVSS 6.8 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-20](https://cwe.mitre.org/data/definitions/20.html) · [CWE-400](https://cwe.mitre.org/data/definitions/400.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md) · [CWE-20](https://agentprime.io/advisories/tag/cwe-20.md)
- **Published:** 9 Jan 2024
- **Updated:** 7 Aug 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 9 Jan 2024, 19:35 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `System.IdentityModel.Tokens.Jwt` (NuGet): affected `<5.7.0 || >=6.5.0, <6.34.0 || >=7.0.0-preview, <7.1.2`; fixed in `5.7.0`, `6.34.0`, `7.1.2`
- `Microsoft.IdentityModel.JsonWebTokens` (NuGet): affected `<5.7.0 || >=6.5.0, <6.34.0 || >=7.0.0-preview, <7.1.2`; fixed in `5.7.0`, `6.34.0`, `7.1.2`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Microsoft.IdentityModel.JsonWebTokens and System.IdentityModel.Tokens.Jwt are affected in versions before 5.7.0, from 6.5.0 before 6.34.0, and from 7.0.0-preview before 7.1.2. An unauthenticated client can consume large amounts of server memory in ASP.NET Core projects created from affected templates with JWT-based authentication enabled, which can cause an out-of-memory condition. Upgrade to 5.7.0, 6.34.0, 7.1.2 or later.

Written 9 Nov 2026.

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

- 6.8 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H/E:U/RL:O/RC:C`, from CNA (microsoft)

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

## Timeline

- 9 Jan 2024, 18:53 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/dotnet/aspnetcore/security/advisories/GHSA-59j7-ghrg-fj52)
- 31 Oct 2026, 15:22 UTC: First seen by agentprime
- 31 Oct 2026, 15:22 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-59j7-ghrg-fj52)

## Sources

- [GitHub Advisory Database: GHSA-59j7-ghrg-fj52](https://github.com/advisories/GHSA-59j7-ghrg-fj52)
- [OSV: GHSA-59j7-ghrg-fj52](https://osv.dev/vulnerability/GHSA-59j7-ghrg-fj52)
- <https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/security/advisories/GHSA-8g9c-28fc-mcx2>
- <https://github.com/dotnet/aspnetcore/security/advisories/GHSA-59j7-ghrg-fj52>
- <https://github.com/dotnet/announcements/issues/290>
- <https://github.com/dotnet/aspnetcore>

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-59j7-ghrg-fj52>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-59j7-ghrg-fj52/>. Everything for agents: <https://agentprime.io/llms.txt>.
