Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. Microsoft.AspNetCore.DataProtection
  4. ›
  5. CVE-2026-40372

CVE-2026-40372: Microsoft Security Advisory CVE-2026-40372 – ASP.NET Core Elevation of Privilege

April 23, 2026 (updated April 24, 2026)

A bug in Microsoft.AspNetCore.DataProtection 10.0.0-10.0.6 NuGet packages can give an attacker the opportunity to execute an Elevation of Privilege attack by forging authentication cookies, and also allows some protected payloads to be decrypted.

If an attacker used forged payloads to authenticate as a privileged user during the vulnerable window, they may have induced the application to issue legitimately-signed tokens (session refresh, API key, password reset link, etc.) to themselves. Those tokens remain valid after upgrading to 10.0.7 unless the DataProtection key ring is rotated.

This is comparable in capability to MS10-070, which exploited a similar padding-oracle condition in ASP.NET’s legacy encryption infrastructure.

References

  • github.com/advisories/GHSA-9mv3-2cwr-p262
  • github.com/dotnet/announcements/issues/395
  • github.com/dotnet/aspnetcore
  • github.com/dotnet/aspnetcore/security/advisories/GHSA-9mv3-2cwr-p262
  • msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40372
  • nvd.nist.gov/vuln/detail/CVE-2026-40372

Code Behaviors & Features

Detect and mitigate CVE-2026-40372 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 10.0.0 before 10.0.7

Fixed versions

  • 10.0.7

Solution

Upgrade to version 10.0.7 or above.

Impact 9.1 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-347: Improper Verification of Cryptographic Signature

Source file

nuget/Microsoft.AspNetCore.DataProtection/CVE-2026-40372.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:20:11 +0000.