CVE-2026-34157
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.
Fixes and workarounds
Fix
github.com/wailsapp/wails/v2 (Go): OSV reports a fixed version 2.13.0. Check the advisory for supported release branches.
Source: OSV GHSA-47hv-j4px-h3c9Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| wails wailsapp |
>= 2.0.0, < 2.13.0 (affected) | CNA: GitHub_M |
github.com/wailsapp/wails/v2github.com/wailsapp/wails/v2
Go |
≥ 2.0.0; < 2.13.0 (affected, semver); OSV events: introduced 2.0.0; fixed 2.13.0Source events (semver)
Other versions: unaffected |
OSV GHSA-47hv-j4px-h3c9 |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 7.6 high |
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 | CNA: GitHub_M |
| 4.0 / 7.6 high |
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 | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/wailsapp/wails/security/advisories/GHSA-47hv-j4px-h3c9CNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/wailsapp/wails/pull/5074CNA: GitHub_M · x_refsource_MISC
- https://github.com/wailsapp/wails/commit/bcc5941b72fdab6a13942b58871a2696faa85b81CNA: GitHub_M · x_refsource_MISC
- https://github.com/wailsapp/wails/releases/tag/v2.13.0CNA: GitHub_M · x_refsource_MISC
- https://github.com/wailsapp/wails/commit/bcc5941b72fdab6a13942b58871a2696faa85b81[email protected]
- https://github.com/wailsapp/wails/pull/5074[email protected]
- https://github.com/wailsapp/wails/releases/tag/v2.13.0[email protected]
- https://github.com/wailsapp/wails/security/advisories/GHSA-47hv-j4px-h3c9[email protected]
- https://github.com/advisories/GHSA-47hv-j4px-h3c9OSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-47hv-j4px-h3c9OSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.