CVE-2026-102870: CWE-94: Improper Control of Generation of Code ('Code Injection') in Microsoft Microsoft Visual Studio 2022 version 17.14
Description
Improper control of generation of code ('code injection') in ASP.NET Core allows an unauthorized attacker to execute code over a network.
CVSS v3.1
Score 8.8high
Affected software
Microsoft
Microsoft Visual Studio 2022 version 17.14
Microsoft
Microsoft Visual Studio 2026 version 18.10
Microsoft
Microsoft.AspNetCore.Components.WebAssembly.Server
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the Blazor WebAssembly debug proxy, which evaluates debugger expressions by generating and compiling C# source code. Certain application-originated values such as ToString() results, descriptions, and class names are embedded in this generated source without consistent escaping. This improper control of code generation (CWE-94) allows an attacker to inject code that executes on the developer's machine during debugging when an expression involving attacker-controlled data is evaluated. The issue affects Microsoft.AspNetCore.Components.WebAssembly.Server package versions >=10.0.0 and <=10.0.12, as well as preview versions >=11.0.0-preview.1 and <=11.0.0-rc.1. Patched versions 10.0.13 and 11.0.0-rc.2.26478.115 have been released. The vulnerability has a CVSS 3.1 score of 8.8, indicating high severity.
Potential Impact
Successful exploitation can lead to remote code execution on the developer's machine during debugging sessions involving attacker-controlled application data. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability affects all platforms (Windows, Linux, macOS) and architectures where the vulnerable package is used.
Mitigation Recommendations
An official fix is available. Users should update Microsoft.AspNetCore.Components.WebAssembly.Server to version 10.0.13 or later (for the 10.x release) or 11.0.0-rc.2.26478.115 or later (for the 11.x preview release). After updating, restart the debugger and development environment. Installing the latest supported .NET version is also recommended. No additional mitigations are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- microsoft
- Date Reserved
- 2026-09-29T17:27:07.500Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- official-fix
- Vendor Advisory Urls
- [{"url":"https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-102870","vendor":"Microsoft"}]
Threat ID: 6ace84962cdf04f6569f0262
Added to database: 10/13/2026, 19:20:54 UTC
Last enriched: 10/13/2026, 21:58:50 UTC
Last updated: 10/13/2026, 22:50:42 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.