CVE-2026-34157
HIGH 7.6CVSS 4.0Wails: 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.
- Published
- 5 Nov 2026
- Last modified
- 12 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-625
- Also known as
- GHSA-47hv-j4px-h3c9GO-2026-6862
- Sources
- NVDJSONOSV GHSA-47hv-j4px-h3c9JSONOSV GO-2026-6862JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.6 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | 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:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/wailsapp/wails/v2 | >= 2.0.0, < 2.13.0 | 2.13.0 |
References
- https://github.com/wailsapp/wails/commit/bcc5941b72fdab6a13942b58871a2696faa85b81 · WEB, FIX
- https://github.com/wailsapp/wails/pull/5074 · WEB, FIX
- https://github.com/wailsapp/wails/releases/tag/v2.13.0
- https://github.com/wailsapp/wails/security/advisories/GHSA-47hv-j4px-h3c9 · WEB, ADVISORY
- https://github.com/wailsapp/wails · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 5 Nov 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Nov 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 27 Oct 2026)