Microsoft Fixes Code Injection Flaw in ASP.NET Core Debugger
A high-severity vulnerability in the Blazor WebAssembly debugger allows remote code execution on developer machines during debugging sessions.

Key points
- CVE-2026-102870 affects the Microsoft.AspNetCore.Components.WebAssembly.Server package.
- The flaw enables code injection via unescaped debugger expressions.
- Patches are available for versions 10.0.13 and 11.0.0-rc.2.26478.115.
Microsoft has released patches for a high-severity code injection vulnerability in its ASP.NET Core framework. The flaw, tracked as CVE-2026-102870, allows unauthorized attackers to execute code on a developer’s machine through the Blazor WebAssembly debugger. This issue affects multiple versions of the Microsoft.AspNetCore.Components.WebAssembly.Server NuGet package.
At a glance
- CVE
- CVE-2026-102870
- Product
- Microsoft Visual Studio 2022 version 17.14
- CVSS
- 8.8 High
- Weakness
- code injection
- Exploited
- No known exploitation
The vulnerability stems from improper control of code generation within the debug proxy. When developers evaluate expressions during debugging, the proxy generates and compiles C# source code. Certain values from the application, such as class names or ToString() results, are embedded in this source without consistent escaping. An attacker-controlled value can break out of the string literal and execute arbitrary code.
Technical Context and Severity
The National Vulnerability Database rates CVE-2026-102870 as high severity with a CVSS score of 8.8. The weakness is classified under CWE-94, which covers improper control of code generation. The attack vector is network-based, requiring low complexity and no privileges, but it does require user interaction. Specifically, a developer must evaluate an expression during a debugging session for the exploit to succeed.
This incident follows other recent security updates from Microsoft. As Threat Times reported on October 13, 2026, a critical path traversal flaw in Visual Studio Code allowed remote code execution. On the same date, a critical use-after-free vulnerability in Windows Message Queuing was disclosed. These events highlight ongoing scrutiny of development tools and underlying operating system components.
Affected Versions and Platforms
The vulnerability impacts projects using specific versions of the Microsoft.AspNetCore.Components.WebAssembly.Server package. Versions 10.0.0 through 10.0.12 are vulnerable, with 10.0.13 providing the fix. Additionally, preview versions 11.0.0-preview.1 through 11.0.0-rc.1 are affected, while 11.0.0-rc.2.26478.115 resolves the issue. The flaw affects developers on Windows, Linux, and macOS across all architectures.
Microsoft Visual Studio 2022 versions prior to 17.14.42 and Visual Studio 2026 versions prior to 18.10.4 are also listed in the NVD record as affected. Developers using these IDE versions should verify their installed package versions. The advisory notes that the issue is specific to the Blazor WebAssembly debug proxy and does not affect production deployments of the applications themselves.
What should you do?
Developers should immediately check their project dependencies for the Microsoft.AspNetCore.Components.WebAssembly.Server package. If the version falls within the affected ranges, update to the patched version. Organizations should review their build pipelines to ensure they are not pulling vulnerable packages. Monitoring for any further advisories from Microsoft regarding this CVE is recommended.
What to do and how to stay safe: Microsoft
- Audit your NuGet package references to identify if you are using a vulnerable version of Microsoft.AspNetCore.Components.WebAssembly.Server.
- Update to the patched versions (10.0.13 or 11.0.0-rc.2.26478.115) as soon as possible to mitigate the risk.
- Restrict network access to debug ports in development environments to reduce the attack surface.
- Educate developers on the risks of evaluating untrusted expressions during debugging sessions.
Step-by-step guide: Risk-Based Vulnerability Management: Prioritize Fixes by Actual Danger
General security guidance from the Threat Times newsroom. It is not confirmed advice from the organisations named in this story.
Frequently asked questions
What is CVE-2026-102870?
It is a high-severity code injection vulnerability in the Blazor WebAssembly debugger that allows remote code execution on a developer's machine.
Which versions are affected?
Versions 10.0.0 through 10.0.12 and 11.0.0-preview.1 through 11.0.0-rc.1 of the Microsoft.AspNetCore.Components.WebAssembly.Server package are affected.
Is there a patch available?
Yes, Microsoft has released patches in versions 10.0.13 and 11.0.0-rc.2.26478.115 of the affected package.


