Wails
Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.0.0, < 2.13.0
Fixed in 2.13.0
Mitigation
Upgrade wails to 2.13.0 or later.
References
- Vendor advisory github.com/wailsapp/wails/security/advisories/…
- Patch github.com/wailsapp/wails/pull/5074
- Patch github.com/wailsapp/wails/commit/bcc5941b72fda…
1 more
- Release notes github.com/wailsapp/wails/releases/tag/v2.13.0
Timeline
Days relative to CVE publicationFirst public PoC 18 days before publication; not in CISA KEV. First PoC: Saku0512/CVE-2026-34157-poc (created 18 Oct 2026, found by us: 14 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| Saku0512/CVE-2026-34157-poc | 18 Oct 2026 −18 d | 14 Nov 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.