# CVE-2026-34157: Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins

- Severity: High 7.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-10-27T13:29:47.000Z
- Modified: 2026-11-12T22:18:51.470Z
- Also known as: GHSA-47hv-j4px-h3c9, GO-2026-6862
- Weaknesses: CWE-625
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- wailsapp wails: >= 2.0.0, < 2.13.0
- github.com/wailsapp/wails/v2 (Go): from 2.0.0 before 2.13.0

## Every score

- GitHub_M: CVSS: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`
- GitHub: CVSS:4.0 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`

## References

- <https://github.com/wailsapp/wails/security/advisories/GHSA-47hv-j4px-h3c9> (advisory, web)
- <https://github.com/wailsapp/wails/pull/5074> (fix, web)
- <https://github.com/wailsapp/wails/commit/bcc5941b72fdab6a13942b58871a2696faa85b81> (fix, web)
- <https://github.com/wailsapp/wails/releases/tag/v2.13.0>
- <https://github.com/wailsapp/wails> (package)

## Sources

- CVE List: [CVE-2026-34157](https://www.cve.org/CVERecord?id=CVE-2026-34157), CVE Terms of Use, modified 2026-11-09
- GitHub Advisory Database: [GHSA-47hv-j4px-h3c9](https://github.com/advisories/GHSA-47hv-j4px-h3c9), CC-BY-4.0, modified 2026-11-05
- Go Vulnerability Database: [GO-2026-6862](https://pkg.go.dev/vuln/GO-2026-6862), CC-BY-4.0, modified 2026-11-05
- NVD: [CVE-2026-34157](https://nvd.nist.gov/vuln/detail/CVE-2026-34157), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-34157 · Whole record: https://cve.day/CVE-2026-34157.json · Rebuilt by cve.day 2026-11-25T22:59:49.184Z
