CVE-2026-34157
Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins
- Published
- Nov 5, 2026
- Updated
- Nov 5, 2026
- Assigning CNA
- GitHub_M
- Evidence observed
- Nov 7, 2026
Primary CVSS
cvelist · CVSS 4.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:NSummary
Wails is a framework for building desktop applications using Go and web technologies. From 2.0.0 until 2.13.0, BindingsAllowedOrigins in v2/internal/frontend/originvalidator/originValidator.go passes wildcard patterns to wildcardPatternToRegex, which expands every asterisk to an unrestricted regular-expression match. When an application configures a trailing or partial-label wildcard immediately after an allowed domain, an attacker-controlled lookalike origin can match the allowed suffix and invoke bound Go methods through IPC. A complete-component subdomain wildcard is an unaffected configuration. The resulting confidentiality, integrity, and availability impact depends on the file, database, command, credential, or other operations exposed by the application's bound methods. This issue is fixed in version 2.13.0.
Sources
Go proof-of-concept reproducing CVE-2026-34157, a Wails v2 origin validator wildcard bypass (CWE-625), comparing vulnerable v2.12.0 against fixed v2.13.0.
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.