Code Injection in Microsoft Windows and Windows Server - CVE-2026-124225
Published: November 11, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code in the invoking Windows PowerShell process on the victim's system.
The vulnerability exists due to improper control of code generation in Windows PowerShell when Invoke-WebRequest processes a specially crafted non-2xx HTML response through MSHTML without displaying the security confirmation prompt. A remote attacker can convince a victim, or cause a victim-controlled automated process, to invoke Invoke-WebRequest against an attacker-controlled URL and return a crafted response to execute embedded script in the invoking PowerShell process.
Affected software
Windows Server
How to mitigate CVE-2026-124225
Windows Server - addressed in versions 2016 10.0.14393.9688, 2019 10.0.17763.9487, 2022 10.0.20348.5870, 2025 10.0.26100.33730, 2025 10.0.26100.33812