<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>ASP.NET Core | The .NET Blog</title><link>https://thedotnetblog.com/tags/asp.net-core/</link><description>Articles, tutorials and insights from the .NET community.</description><generator>Hugo</generator><language>en</language><managingEditor>@thedotnetblog (The .NET Blog)</managingEditor><webMaster>@thedotnetblog</webMaster><lastBuildDate>Wed, 22 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://thedotnetblog.com/tags/asp.net-core/index.xml" rel="self" type="application/rss+xml"/><item><title>Patch This Now: .NET 10.0.7 OOB Security Update for ASP.NET Core Data Protection</title><link>https://thedotnetblog.com/posts/emiliano-montesdeoca/dotnet-10-0-7-oob-security-patch-data-protection/</link><pubDate>Wed, 22 Apr 2026 00:00:00 +0000</pubDate><author>Emiliano Montesdeoca</author><guid>https://thedotnetblog.com/posts/emiliano-montesdeoca/dotnet-10-0-7-oob-security-patch-data-protection/</guid><description>.NET 10.0.7 is an out-of-band release fixing a security vulnerability in Microsoft.AspNetCore.DataProtection — the managed authenticated encryptor was computing HMAC over the wrong bytes, leading to potential elevation of privilege. Update immediately.</description><content:encoded>&lt;p&gt;This one is not optional. If your application uses &lt;code&gt;Microsoft.AspNetCore.DataProtection&lt;/code&gt;, you need to update to 10.0.7.&lt;/p&gt;
&lt;h2 id="what-happened"&gt;What Happened&lt;/h2&gt;
&lt;p&gt;After the Patch Tuesday &lt;code&gt;.NET 10.0.6&lt;/code&gt; release, some users started reporting that decryption was failing in their applications. The issue was filed as &lt;a href="https://github.com/dotnet/aspnetcore/issues/66335"&gt;aspnetcore#66335&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;While investigating that regression, the team discovered it also exposed a security vulnerability: &lt;strong&gt;CVE-2026-40372&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;In versions &lt;code&gt;10.0.0&lt;/code&gt; through &lt;code&gt;10.0.6&lt;/code&gt; of &lt;code&gt;Microsoft.AspNetCore.DataProtection&lt;/code&gt;, the managed authenticated encryptor had a bug where it computed its HMAC validation tag over the &lt;strong&gt;wrong bytes&lt;/strong&gt; of the payload and then discarded the computed hash. This could result in elevation of privilege.&lt;/p&gt;
&lt;p&gt;In plain terms: the integrity check wasn&amp;rsquo;t doing what it was supposed to do. Data Protection uses authenticated encryption to prevent tampering — the HMAC is the &amp;ldquo;has this been modified?&amp;rdquo; check. If the HMAC is computed over the wrong data, you lose that guarantee.&lt;/p&gt;
&lt;h2 id="who-is-affected"&gt;Who Is Affected&lt;/h2&gt;
&lt;p&gt;Any .NET 10 application using &lt;code&gt;Microsoft.AspNetCore.DataProtection&lt;/code&gt; — versions 10.0.0 through 10.0.6. The good news is this package is specific to .NET 10. If you&amp;rsquo;re still on .NET 8 or 9, you&amp;rsquo;re not affected by this specific CVE.&lt;/p&gt;
&lt;p&gt;Common use cases for Data Protection: cookie encryption, antiforgery tokens, temp data in MVC, and any other use of &lt;code&gt;IDataProtector&lt;/code&gt; in your application.&lt;/p&gt;
&lt;h2 id="how-to-fix-it"&gt;How to Fix It&lt;/h2&gt;
&lt;p&gt;Update the &lt;code&gt;Microsoft.AspNetCore.DataProtection&lt;/code&gt; NuGet package to &lt;strong&gt;10.0.7&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;dotnet add package Microsoft.AspNetCore.DataProtection --version 10.0.7
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or update your SDK/runtime: &lt;a href="https://dotnet.microsoft.com/download/dotnet/10.0"&gt;download .NET 10.0.7&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Verify you&amp;rsquo;re on the right version:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;dotnet --info
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then &lt;strong&gt;rebuild and redeploy&lt;/strong&gt; your application. The fix doesn&amp;rsquo;t take effect until you&amp;rsquo;re running the updated package.&lt;/p&gt;
&lt;h2 id="the-bigger-picture"&gt;The Bigger Picture&lt;/h2&gt;
&lt;p&gt;Out-of-band security releases are uncommon — they happen when a vulnerability is serious enough that it can&amp;rsquo;t wait for the next scheduled Patch Tuesday. This one is a direct consequence of a regression in 10.0.6 creating a security gap. The fact that it was discovered through bug reports is a good sign that the process worked. The fix is fast and the scope is narrow.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re running .NET 10 in production with any web application framework, this is a same-day update situation.&lt;/p&gt;
&lt;p&gt;Original announcement by Rahul Bhandari: &lt;a href="https://devblogs.microsoft.com/dotnet/dotnet-10-0-7-oob-security-update/"&gt;.NET 10.0.7 Out-of-Band Security Update&lt;/a&gt;.&lt;/p&gt;</content:encoded></item></channel></rss>