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

Status: published. Published: 2026-11-05. Updated: 2026-11-09.

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.

## Remediation

- 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-h3c9) — https://github.com/advisories/GHSA-47hv-j4px-h3c9

## Affected products and versions

- wailsapp / wails: >= 2.0.0, < 2.13.0 (affected). Source: CNA: GitHub_M
-  / github.com/wailsapp/wails/v2 (github.com/wailsapp/wails/v2): ≥ 2.0.0; < 2.13.0 (affected, semver); OSV events: introduced 2.0.0; fixed 2.13.0. Source: OSV GHSA-47hv-j4px-h3c9

## Severity and prioritization

- 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; source: CNA: 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/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; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.50% as of 2026-11-09; percentile 43.02%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-625

## 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-h3c9 (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/wailsapp/wails/pull/5074 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/wailsapp/wails/commit/bcc5941b72fdab6a13942b58871a2696faa85b81 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/wailsapp/wails/releases/tag/v2.13.0 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/wailsapp/wails/commit/bcc5941b72fdab6a13942b58871a2696faa85b81 (security-advisories@github.com)

- https://github.com/wailsapp/wails/pull/5074 (security-advisories@github.com)

- https://github.com/wailsapp/wails/releases/tag/v2.13.0 (security-advisories@github.com)

- https://github.com/wailsapp/wails/security/advisories/GHSA-47hv-j4px-h3c9 (security-advisories@github.com)

- https://github.com/advisories/GHSA-47hv-j4px-h3c9 (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-47hv-j4px-h3c9 (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-34157; retrieved 2026-11-09; source updated 2026-11-09

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-34157; retrieved 2026-11-06; source updated 2026-11-05

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-47hv-j4px-h3c9; retrieved 2026-11-09; source updated 2026-11-05

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-34157; retrieved 2026-11-09; source updated Not reported

Revision: 4d296a09bccc5e17d2d0d116cb8e0a83211ed696c913fadcfa9f78fe5f9b0b58

Canonical: https://y2.dev/cve/CVE-2026-34157

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.