Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. Microsoft.AspNetCore.Authentication.JwtBearer
  4. ›
  5. CVE-2021-34532

CVE-2021-34532: ASP.NET Core Information Disclosure Vulnerability

August 25, 2021 (updated August 11, 2026)

Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 5.0, .NET Core 3.1 and .NET Core 2.1. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.

An information disclosure vulnerability exists in .NET 5.0, .NET Core 3.1 and .NET Core 2.1 where a JWT token is logged if it cannot be parsed.

References

  • github.com/advisories/GHSA-q7cg-43mg-qp69
  • github.com/dotnet/aspnetcore/security/advisories/GHSA-q7cg-43mg-qp69
  • msrc.microsoft.com/update-guide/vulnerability/CVE-2021-34532
  • nvd.nist.gov/vuln/detail/CVE-2021-34532
  • portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-34532

Code Behaviors & Features

Detect and mitigate CVE-2021-34532 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.1.0 before 2.1.29, all versions starting from 3.0.0 before 3.1.18, all versions starting from 5.0.0 before 5.0.9

Fixed versions

  • 2.1.29
  • 3.1.18
  • 5.0.9

Solution

Upgrade to versions 2.1.29, 3.1.18, 5.0.9 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Source file

nuget/Microsoft.AspNetCore.Authentication.JwtBearer/CVE-2021-34532.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:21:28 +0000.