CVE-2026-34157 Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| wailsapp wails(Go) | >= 2.0.0, < 2.13.0 | 2.13.0 | Fixed |
| wailsapp wails | = >= 2.0.0, < 2.13.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| wailsapp wails | = >= 2.0.0, < 2.13.0 | No fix listed |
| wailsapp wails(Go) | >= 2.0.0, < 2.13.0 | 2.13.0 |
References
- https://github.com/wailsapp/wails/security/advisories/GHSA-47hv-j4px-h3c9 vendor-advisory
- https://github.com/wailsapp/wails/pull/5074 patch
- https://github.com/wailsapp/wails/commit/bcc5941b72fdab6a13942b58871a2696faa85b81 patch
- https://github.com/wailsapp/wails/releases/tag/v2.13.0
- github.com product
- github.com
- ENISA EUVD EUVD-2026-117787 third-party-advisory