# Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins

Advisory record · `GHSA-47hv-j4px-h3c9`

- **Identifiers:** `GHSA-47hv-j4px-h3c9` · `CVE-2026-34157` · `GO-2026-6862`
- **State:** Confirmed
- **Severity:** CVSS 7.6 High
- **Critical:** No
- **Weakness (CWE):** [CWE-625](https://cwe.mitre.org/data/definitions/625.html)
- **Tags:** [CWE-625](https://agentprime.io/advisories/tag/cwe-625.md)
- **Published:** 27 Oct 2026
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 27 Oct 2026, 13:29 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `github.com/wailsapp/wails/v2` (Go): affected `>=2.0.0, <2.13.0`; fixed in `2.13.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Wails v2 (github.com/wailsapp/wails/v2) versions from 2.0.0 before 2.13.0 are affected. A wildcard origin pattern without a full domain component, such as myapp.com\*, also matches attacker-controlled domains like myapp.community, so an attacker who controls such a domain can call bound Go methods. Upgrade to 2.13.0 or later.

Written 1 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.6 High, 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`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** No score.

## Timeline

- 31 Oct 2026, 14:11 UTC: First seen by agentprime
- 31 Oct 2026, 14:11 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-47hv-j4px-h3c9)
- 5 Nov 2026, 20:26 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2026-34157)
- 5 Nov 2026, 21:18 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-34157)

## Sources

- [GitHub Advisory Database: GHSA-47hv-j4px-h3c9](https://github.com/advisories/GHSA-47hv-j4px-h3c9)
- [OSV: GHSA-47hv-j4px-h3c9](https://osv.dev/vulnerability/GHSA-47hv-j4px-h3c9)
- <https://github.com/wailsapp/wails/security/advisories/GHSA-47hv-j4px-h3c9>
- <https://github.com/wailsapp/wails/pull/5074>
- <https://github.com/wailsapp/wails/commit/bcc5941b72fdab6a13942b58871a2696faa85b81>
- <https://github.com/wailsapp/wails>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-47hv-j4px-h3c9>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-47hv-j4px-h3c9/>. Everything for agents: <https://agentprime.io/llms.txt>.
