Technical impact
The flaw arises from the handling of wildcard patterns in the BindingsAllowedOrigins configuration within the Wails framework. Wildcards are expanded using wildcardPatternToRegex, turning each asterisk into an unrestricted regular‑expression match. When a trailing or partial‑label wildcard is placed directly after an allowed domain, an attacker‑controlled origin that mimics the suffix can match the allowed pattern, bypassing the origin check. This allows the attacker to invoke bound Go methods through interprocess communication, potentially exposing file, database, command, or credential operations and leading to full remote code execution.
Affected Systems
The vulnerability affects the Wails application framework (wailsapp:wails) in all releases from version 2.0.0 up through, but not including, the security release 2.13.0. Any application built using any of those versions that configures BindingsAllowedOrigins with a trailing or partial‑label wildcard is susceptible.
Risk and Exploitability
The CVSS base score of 7.6 reflects significant severity, and while an EPSS score is not currently available, the violation is not listed in the CISA KEV catalog. The exploitation requires only an attacker‑controllable origin header, which can be supplied from a malicious webpage or script that the desktop application loads. Because the attack originates from normal browser‑like contexts, the attack vector is likely network‑remote or local depending on the host environment. Once the origin bypass is achieved, the attacker can execute any bound Go method and gain full confidentiality, integrity, and availability compromise of the target system.
Github GHSA