CVE-2026-34157: Wails · wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins
Affects github.com/wailsapp/wails/v2Source GCVE Database
Not known to be exploited · CVSS 7.6 High : upgrade to 2.13.0 soon.
Data as of 27 Oct 2026, 14:42 UTC
- Patch
- Available – fixed in 2.13.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 27 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade github.com/wailsapp/wails/v2 to 2.13.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/wailsapp/wails/v2 | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in Wails version 2.13.0 that fixes the wildcard pattern matching to prevent suffix-based origin bypasses. Users should upgrade to version 2.13.0 or later to remediate this vulnerability. Until then, avoid using trailing wildcards in origin patterns (e.g., 'myapp.com*') and prefer subdomain wildcards (e.g., 'https://*.myapp.com'), which are not affected.
Description
Wails v2 contains a vulnerability in its origin validation logic where wildcard patterns in BindingsAllowedOrigins are improperly converted to regular expressions. This allows origins with suffixes matching the allowed pattern to bypass restrictions and invoke Go backend methods. The issue affects versions before 2.13.0 and can lead to unauthorized access to file systems, databases, or command execution depending on the exposed API surface. A fix is available in version 2.13.0.