Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins
- State
- Published
- Severity
- 7.6 High
- Published
- Nov 5, 2026
- Updated
- Nov 9, 2026
- Reserved
- Mar 25, 2026
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.
| Product | Versions |
|---|---|
| wails wailsapp | >= 2.0.0, < 2.13.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.6 High | GitHub_M |
Weaknesses
- CWE-625 Permissive Regular Expression
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.