CVE-2026-136628 in Wailsinfo

Summary

by MITRE • 11/25/2026

Wails before 2.17.1 on Linux contains an origin validation error in the sendMessageToBackend WebKitGTK handler that allows child-frame scripts to invoke the privileged IPC channel. Attackers controlling content loaded in an iframe can post messages that pass the top-level URI origin check and call bound Go methods and Wails runtime operations.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in versions of the Wails framework prior to 2.17.1 represents a critical failure in cross-origin resource sharing validation within the WebKitGTK backend on Linux systems. This flaw specifically resides in the sendMessageToBackend handler, which serves as the bridge between JavaScript running in web content and Go code executing in the native application environment. The core technical deficiency is an origin validation error that fails to properly distinguish between messages originating from the top-level frame versus those coming from nested child frames or iframes. In a secure implementation, any message sent via postMessage should be rigorously checked against the expected origin of the main page to ensure it was not injected by malicious third-party content loaded within an iframe. However, in this affected version, the handler accepts messages that pass a superficial top-level URI check while ignoring the actual source context of the child frame. This oversight allows scripts embedded in iframes, which are typically subject to stricter same-origin policies, to bypass these restrictions and interact directly with privileged application interfaces.

The operational impact of this vulnerability is severe because it enables arbitrary code execution within the context of the host application. An attacker who can control or influence content loaded into an iframe on a page using Wails can exploit this flaw to post messages that are indistinguishable from legitimate internal communications. By leveraging these forged messages, the attacker gains the ability to invoke bound Go methods and access sensitive Wails runtime operations that should be restricted to trusted origins. This effectively breaks the isolation boundary between untrusted web content and the native application layer. Consequently, an adversary could potentially read local files, execute system commands, or manipulate application state in ways that compromise confidentiality, integrity, and availability of the user's data and environment. The severity is amplified by the fact that Wails applications are often used for desktop tools where users may grant significant permissions to the underlying process.

From a classification perspective, this vulnerability aligns with CWE-346, which describes an Origin Validation Error in cross-origin communication scenarios. It also maps closely to MITRE ATT&CK technique T1059, specifically Command and Scripting Interpreter sub-techniques where attackers use legitimate application features to execute arbitrary code. The attack vector relies on the attacker's ability to inject or control content within an iframe context that is rendered by the Wails webview component. This scenario highlights a common pitfall in hybrid app development where developers assume that checking the top-level origin is sufficient for security, neglecting the potential for frame-busting failures and cross-frame scripting attacks. The lack of strict validation on the message source allows malicious actors to escalate privileges from untrusted web content to trusted native code execution contexts.

Mitigation strategies must focus on immediate version updates and rigorous input validation practices. Users running Wails-based applications should upgrade to version 2.17.1 or later, where this origin validation logic has been corrected to properly verify the source of incoming messages against both top-level and child-frame origins. For developers integrating similar IPC mechanisms in other frameworks, it is essential to implement strict origin checking that validates not just the URL but also the frame hierarchy context. This includes ensuring that only scripts from explicitly whitelisted origins can send privileged commands and implementing additional checks such as message type verification and payload sanitization. Security audits should specifically target cross-origin communication handlers to ensure they do not rely solely on top-level domain matching, thereby preventing similar bypasses in future implementations of hybrid desktop applications.

Responsible

VulnCheck

Reservation

11/24/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00317

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!