惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
T
Tailwind CSS Blog
Recent Announcements
Recent Announcements
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
D
Docker
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
IT之家
IT之家
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
B
Blog
D
DataBreaches.Net

Duende Software Official Site

The Backend for Frontend Pattern Is Now Official IETF Guidance: RFC 10017 Published WhatsApp One-Time Password (OTP) Login with Duende IdentityServer and User Management Planning a Successful Migration from IdentityServer3 to Duende IdentityServer Client Secrets, Mutual TLS and Private Key JWT, Oh My! How To Spell "Duende" Understanding .NET 11 Automatic CSRF Protection: A Guide for Identity Developers Security Lingo Explained: TOTP (Time-based One-Time Password) Custom Passkey Attestation Policies: Restricting Login to Hardware Keys OAuth Identity Chaining, Transaction Tokens, and Human-in-the-Loop: Summer 2026 Identity Standards Recap What is Identity? - The Question Every Team Should Answer Before Writing Code Security Is a Spectrum: How to Choose Session Lifetimes in Duende IdentityServer Passkeys and WebAuthn with Duende IdentityServer and User Management Authenticating Players in Godot 4 with OAuth 2.0 and OpenID Connect Hardening OAuth in the newest 2026-07-28 MCP Release Candidate Unify Your SAML and OIDC Signing Keys with Automatic Rotation and Duende IdentityServer Duende Software Duende Software Duende Software Duende Software Duende Software Duende Software Duende Software Duende Software Stop AI Bots from Wasting Your Server How Duende IdentityServer Filters Claims (And Why It Matters) Core vs Extended Protocols in Duende IdentityServer v8: What You Get and When You Need More Your IdentityServer v8 Upgrade Checklist: A Quick Pre-Flight Guide Setting Up SAML Single Sign-On in ASP.NET with Duende IdentityServer Your Identity, Your Terms: Duende's Modular Identity Infrastructure and v8.x Release Duende Spring Launch '26: Identity Infrastructure That Expands With You
Update Guidance for CVE-2026-40372 - ASP.NET Data Protection
AL Rodriguez · 2026-04-22 · via Duende Software Official Site

On April 21, 2026, Microsoft disclosed CVE-2026-40372, a high-severity vulnerability in the Microsoft.AspNetCore.DataProtection NuGet package. It allows attackers to execute an Elevation of Privilege attack by forging authentication cookies.

None of the Duende packages have a direct or transitive dependency on the Microsoft.AspNetCore.DataProtection NuGet package. However there are cases where you may be using that NuGet package as a dependency within your application.

The Vulnerability

CVE-2026-40372 is an Elevation of Privilege attack. It has a CVSS score of 9.1 (HIGH) due to the impact it can have on a running system. For full details, see Microsoft’s advisory GitHub Issue. It also includes instructions for checking if you are affected and how to update your codebase. There is some extra context from Microsoft in a related GitHub Issue.

How can an attacker use this vulnerability?

Microsoft has not documented the direct steps an attacker can use to take advantage of this vulnerability. This is common when disclosing vulnerabilities to protect users who have not been able to update their systems. CVE descriptions are also written in a generic way to describe what the vulnerability can allow a malicious actor to do.

When Data Protection unprotects data, it uses a Decrypt operation including a Message Authentication Code (MAC) verification. This is where the vulnerability can affect you: an attacker who knows what they are doing and given enough time, can issue repeated requests using a “padding oracle attack” to forge a valid Data Protected payload like an authentication cookie. This is due to a vulnerability in the CalculateAndValidateMac method.

After forging this cookie and gaining access to your web application, if the attacker then successfully refreshes their cookie, they will be issued a valid protected cookie from your application. From this moment onwards, their attack is persistent even after you’ve patched your code, unless you rotate your Data Protection keys to forcefully sign out everyone.

Determine if you are affected

Your first step is to determine if this affects you. The Microsoft advisory has a list of conditions to check.

Applications are likely not affected if they have a direct Microsoft.NET.Sdk.Web or a Microsoft.AspNetCore.App framework reference (the <Project Sdk="Microsoft.NET.Sdk.Web"> line at the top of a .csproj file), or even if they have a transitive reference. We do recommend reading Microsoft’s advisory GitHub Issue, as there are some cases with consuming net462 or netstandard2.0 binaries to consider.

The vast majority of Duende IdentityServer and BFF applications will likely not be affected because the Duende.IdentityServer NuGet package has a web framework reference, bringing it transitively into your application.

Manually checking your dependencies with dotnet nuget why

If you’re unsure if your codebase is using the Microsoft.AspNetCore.DataProtection NuGet package, you can run the dotnet nuget why command locally. For this NuGet package, run the command dotnet nuget why Microsoft.AspNetCore.DataProtection from a directory with a .NET Solution or .csproj file.

The command will output which project(s) have a direct or transitive dependency on that NuGet package. If you do have a transitive reference, the command will list which NuGet packages you’re using that reference it.

You'll want to verify the Microsoft.AspNetCore.DataProtection.* packages with specific storage providers, such as:

  • Microsoft.AspNetCore.DataProtection.AzureKeyVault
  • Microsoft.AspNetCore.DataProtection.AzureStorage
  • Microsoft.AspNetCore.DataProtection.StackExchangeRedis
  • Microsoft.AspNetCore.DataProtection.EntityFrameworkCore

Update only if you are affected

If you believe you are affected by this vulnerability, see Microsoft's GitHub announcement for mitigation steps.

You must update the Microsoft.AspNetCore.DataProtection NuGet package to 10.0.7 or later. You will also need to add code to your application to revoke all (or specific) Data Protection keys.

Keep in mind that revoking Data Protection keys has disruptive effects on your connected applications and users. Signing/validation keys in storage are encrypted using Data Protection. Revoking keys will likely mean signing keys need to be rotated as well. Some planning around announcing new keys is recommended.

Our recommendation is to:

  • Only implement the fix if your web applications (including Duende IdentityServer and BFF) are affected.
  • Rotate your Data Protection keys when someone potentially gained unauthorised access.

Future Steps: Implement an SBOM strategy

If you were unsure if you are using the Microsoft.AspNetCore.DataProtection NuGet package in any of your projects, now would be a good time to consider implementing an organization strategy for generating a Software Bill of Materials (SBOM) file from your code.

An SBOM allows you to track your dependencies across your applications, allowing you to look up what dependencies your applications have. The file can be generated by a build pipeline and tracked by internal software.

There are external tools you can use to generate an SBOM like sbom-tool from Microsoft, the Open Source tool cyclonedx-dotnet, or an Open Source GitHub Action gh-dotnet-generate-sbom. When you have a moment, feel free to research your options for generating the SBOM.