---
id: CVE-2026-102870
title: >-
  Improper control of generation of code ('code injection') in ASP.NET Core
  allows an unauthorized attacker to execute code over a network.
summary: >-
  Improper control of generation of code ('code injection') in ASP.NET Core
  allows an unauthorized attacker to execute code over a network.
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
vendor: Microsoft
product: Microsoft.AspNetCore.Components.WebAssembly.Server
affected:
  - 'Microsoft.AspNetCore.Components.WebAssembly.Server >= 10.0.0, <= 10.0.12'
  - >-
    Microsoft.AspNetCore.Components.WebAssembly.Server >= 11.0.0-preview.1, <=
    11.0.0-rc.1
patched:
  - Microsoft.AspNetCore.Components.WebAssembly.Server 10.0.13
  - Microsoft.AspNetCore.Components.WebAssembly.Server 11.0.0-rc.2.26478.115
published: '2026-10-13'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T04:18:08.113'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-102870'
references:
  - url: 'https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-102870'
    label: secure@microsoft.com
  - url: >-
      https://github.com/dotnet/aspnetcore/security/advisories/GHSA-g27p-qf6j-c96c
  - url: 'https://github.com/dotnet/announcements/issues/445'
  - url: 'https://github.com/dotnet/aspnetcore/discussions/69791'
  - url: 'https://github.com/advisories/GHSA-g27p-qf6j-c96c'
tags:
  - nvd
  - ghsa
  - nuget
aliases:
  - GHSA-g27p-qf6j-c96c
ecosystem: nuget
ingestedAt: '2026-10-13T19:43:28.900Z'
---

## Overview

Improper control of generation of code ('code injection') in ASP.NET Core allows an unauthorized attacker to execute code over a network.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-102870)

Affected packages:

- `Microsoft.AspNetCore.Components.WebAssembly.Server >= 10.0.0, <= 10.0.12`
- `Microsoft.AspNetCore.Components.WebAssembly.Server >= 11.0.0-preview.1, <= 11.0.0-rc.1`

Patched in:

- `Microsoft.AspNetCore.Components.WebAssembly.Server 10.0.13`
- `Microsoft.AspNetCore.Components.WebAssembly.Server 11.0.0-rc.2.26478.115`

Source: https://github.com/advisories/GHSA-g27p-qf6j-c96c
