Oct 14, 2026·5 min read·42 visits
Implicit type auto-conversion in WPF PresentationCore clipboard routines allowed untrusted data streams to be automatically deserialized, enabling arbitrary code execution upon accessing clipboard data.
A remote code execution vulnerability exists in Microsoft .NET due to untrusted data deserialization within the PresentationCore component. The flaw stems from implicit auto-conversion flags during clipboard data retrieval operations.
A remote code execution vulnerability designated as CVE-2026-87697 affects Microsoft .NET runtimes and Windows Presentation Foundation (WPF) applications. The vulnerability carries a CVSS v3.1 base score of 8.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) and is categorized under CWE-502 (Deserialization of Untrusted Data).
The impacted subsystem resides within System.Windows.Clipboard in the PresentationCore library. When a WPF application reads data from the system clipboard or processes typed data objects, implicit auto-conversion mechanisms force the framework to parse and coerce data formats. If an external or malicious process places a specially crafted serialized object stream onto the system clipboard, querying the clipboard triggers automatic deserialization within the target process context.
Because the deserialization occurs without explicit type checks or restrictions on format coercions, attackers capable of placing payloads onto the system clipboard or invoking automated data handling can achieve remote code execution in the context of the user running the application.
The root cause of CVE-2026-87697 lies in the default handling of the autoConvert parameter within data retrieval helper routines in PresentationCore/System/Windows/clipboard.cs. Specifically, the methods GetTypedDataIfAvailable and TryGetData explicitly invoked type retrieval methods using autoConvert: true when querying underlying ITypedDataObject or IDataObject implementations.
When autoConvert is set to true, the framework attempts to dynamically convert raw clipboard object streams into target application types. During this process, the .NET object deserialization pipeline processes raw binary streams or formatted object structures present on the system clipboard. Because deserialization occurs prior to type validation, standard object formatting channels invoke object constructor sequences and property setters on untrusted types.
Additionally, secondary root causes involve Windows Presentation Foundation (WPF) XPS document controls, where synthetic hyperlinks exposed through UI Automation (UIA) provider interfaces allowed automated tools or programmatic UI consumers to trigger navigation without applying strict origin or format sanitization checks.
The fix was applied in the dotnet/wpf repository under commit 0987b406ba6087cbe14fdff1c9b67dd0c83f9076. Analysis of the patch reveals that developers modified GetTypedDataIfAvailable to evaluate whether the requested format safely allows auto-conversion before passing the flag to the data object interface. Furthermore, TryGetData<T> was updated to explicitly pass autoConvert: false.
// File: src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/clipboard.cs
@@ -83,14 +83,16 @@ public static bool ContainsText(TextDataFormat format) => !DataFormats.IsValidTe
private static T? GetTypedDataIfAvailable<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(string format)
{
IDataObject? data = GetDataObject();
+ // Check if format permits auto-conversion explicitly
+ bool autoConvert = IsDataFormatAutoConvert(format);
if (data is ITypedDataObject typed)
{
- return typed.TryGetData(format, autoConvert: true, out T? value) ? value : default;
+ return typed.TryGetData(format, autoConvert, out T? value) ? value : default;
}
if (data is IDataObject dataObject)
{
- return dataObject.GetData(format, autoConvert: true) is T value ? value : default;
+ return dataObject.GetData(format, autoConvert) is T value ? value : default;
}
return default;
@@ -485,7 +487,7 @@ public static bool TryGetData<T>(
return false;
}
- // Enforce autoConvert: false for direct typed data extraction
- return dataObject.TryGetData(format, autoConvert: false, out data);
}The implementation flow transitions from unverified data object expansion to strict conversion boundary enforcement:
Unit tests added alongside the patch confirm that retrieving data in convertible formats without explicit format matching returns null rather than executing payload coercion routines.
Exploitation requires user interaction or automated clipboard polling within a vulnerable WPF host application. An attacker constructs a payload containing gadget chains compatible with standard .NET binary or object deserializers and writes this object to the system clipboard buffer.
When a user performs a paste action, or when the application programmatically calls Clipboard.GetText(), Clipboard.GetData(), or Clipboard.TryGetData(), PresentationCore reads the data object. Under the unpatched framework, the autoConvert: true flag instructs ITypedDataObject.TryGetData to deserialize the stream into the expected target type.
During deserialization, standard gadget chain mechanisms invoke arbitrary commands or arbitrary memory manipulation steps under the executing context of the logged-in user. Prerequisites include local or network delivery of payload data into the shared system clipboard or interaction with a WPF interface consuming clipboard contents.
Successful exploitation leads to full Unauthenticated Remote Code Execution (RCE) in the context of the user running the affected WPF application. If the application operates with administrative privileges, the attacker gains full system control, enabling persistence, data exfiltration, and lateral movement.
Confidentiality, Integrity, and Availability impacts are all rated High (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H). The vulnerability affects enterprise applications built on WPF running on Microsoft .NET 8.0, 9.0, 10.0, 11.0, and developer workstation instances hosted within Visual Studio 2022 and 2026.
No active public exploitation chains or CISA KEV entries are currently logged for this vulnerability, classifying its current exploit status as unproven (E:U).
To remediate CVE-2026-87697, software developers and system administrators must upgrade their .NET runtimes and SDKs to patched release versions. Microsoft has made updates available across all supported release channels.
In custom WPF application implementations that interact with IDataObject or ITypedDataObject directly, developers must review call sites and ensure autoConvert: false is explicitly specified when accepting object payloads from untrusted sources or clipboard handlers.
The patch effectively disables unintended object deserialization during generic type retrieval operations, providing complete remediation for the identified clipboard coercion vectors without breaking valid single-type extraction workflows.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
.NET 8.0 Microsoft | >= 8.0.0, < 8.0.32 | 8.0.32 |
.NET 9.0 Microsoft | >= 9.0.0, < 9.0.21 | 9.0.21 |
.NET 10.0 Microsoft | >= 10.0.0, < 10.0.13 | 10.0.13 |
.NET 11.0 Microsoft | >= 11.0.0, < 11.0.0-rc.2 | 11.0.0-rc.2 |
Visual Studio 2022 Microsoft | >= 17.14.0, < 17.14.42 | 17.14.42 |
Visual Studio 2026 Microsoft | >= 18.10.0, < 18.10.4 | 18.10.4 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-502 |
| Attack Vector | Network (AV:N) |
| Attack Complexity | Low (AC:L) |
| Privileges Required | None (PR:N) |
| User Interaction | Required (UI:R) |
| CVSS v3.1 Score | 8.8 (HIGH) |
| Exploit Status | None / Unproven |
| CISA KEV Status | Not Listed |
The application deserializes untrusted data without sufficiently verifying that the resulting data will be valid.
CVE-2026-65973 (GHSA-h746-qpxh-ph7g) is a local operating system command injection vulnerability (CWE-78) in the PeteBishwhip/laradocs package for Laravel. Versions from 0.4.0 to before 1.0.0 fail to sanitize or escape the configured Node.js binary path before passing it as part of a command string to PHP's proc_open() function during server-side KaTeX rendering. An attacker with the ability to modify local configuration files or environment variables can inject shell metacharacters to execute arbitrary OS commands under the privileges of the web server process.
A SQL injection vulnerability exists in power-components/livewire-powergrid versions 6.0.0 through 6.10.3. The public Livewire component property sortDirection is interpolated directly into raw SQL ORDER BY clauses during natural sorting operations without prior validation. By clearing the sortField property to bypass standard Laravel query builder protections, an attacker can inject arbitrary SQL expressions via POST requests to the /livewire/update endpoint.
CVE-2026-68539 is a remote Denial of Service (DoS) vulnerability in Fulgur, a Rust-based offline HTML/CSS-to-PDF rendering engine. Prior to version 0.29.0, the engine's CSS Generated Content for Paged Media (GCPM) implementation resolved and stored named strings via the string-set property without enforcing memory caps or caching DOM subtree text extraction. An unauthenticated attacker supplying crafted HTML and CSS to a rendering endpoint can trigger multi-gigabyte heap memory allocations and redundant O(M * L) subtree traversals, leading to CPU starvation and out-of-memory (OOM) process aborts.
A stored cross-site scripting (XSS) vulnerability in @waline/client allows unauthenticated attackers to execute arbitrary JavaScript in the context of an administrator's browser session. The flaw exists because the client-side markdown preview renderer utilizes the marked library without HTML sanitization and injects the resulting output directly into the DOM via Vue's v-html directive. When an administrator opens the edit interface for a comment, the preview element is mounted and evaluated immediately due to the combination of watchImmediate and v-show, leading to automatic payload execution and administrative token compromise.
WWBN AVideo versions through 29.0 contain an OS command injection vulnerability (CWE-78) in the standalone API utility function listFFmpegProcesses(). The function constructs a shell pipeline to monitor active FFmpeg processes by interpolating a user-controlled keyword parameter directly into a single-quoted grep argument without sanitization or shell escaping. An attacker capable of crafting or submitting a valid encrypted codeToExec payload can break out of the single-quoted argument context and execute arbitrary operating system commands with the privileges of the web server user.
Ruflo versions prior to 3.16.3 expose the Model Context Protocol (MCP) bridge HTTP endpoints (`POST /mcp` and `POST /mcp/:group`) on all network interfaces (`0.0.0.0:3001`) without authentication. Because the primary JSON-RPC tool dispatcher (`executeTool()`) bypasses existing tool blocklists, an unauthenticated network attacker can invoke the `terminal_execute` tool to achieve arbitrary command execution inside the bridge container. This initial access permits full exfiltration of third-party LLM provider API keys, unauthorized access to the co-located MongoDB instance, and manipulation of the AgentDB learning store.