{"id":"EUVD-2026-117787","revision":null,"records":[{"revision":"8966dd93c71442068de6de838e59f1b5","observedAt":"2026-11-09T20:02:10.904+00:00","statement":{"source":"cve-program","id":"CVE-2026-34157","aliases":[],"title":"Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins","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.","state":0,"publishedAt":"2026-11-05T20:26:04.218+00:00","modifiedAt":"2026-11-09T18:28:05.289+00:00","affected":[{"ecosystem":"Vendor product","name":"wails","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"wailsapp\",\n                    \"product\": \"wails\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 2.0.0, < 2.13.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":7.6,"severity":"HIGH"}],"references":["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/releases/tag/v2.13.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-34157","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-34157","identifiers":["CVE-2026-34157"]},"retained":false,"historicalAffected":[]},{"revision":"67092d94a06c4a3f8df4c7baeb3e5a01","observedAt":"2026-11-15T10:06:41.34+00:00","statement":{"source":"euvd","id":"EUVD-2026-117787","aliases":["CVE-2026-34157","GHSA-47hv-j4px-h3c9"],"title":"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 wildcardPatternToRe…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"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","score":7.6,"severity":null}],"references":["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/releases/tag/v2.13.0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-117787","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Nov 5, 2026, 8:26:04 PM","dateUpdated":"Nov 9, 2026, 6:28:05 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-117787","identifiers":["EUVD-2026-117787","CVE-2026-34157","GHSA-47hv-j4px-h3c9"]},"retained":false,"historicalAffected":[]},{"revision":"1b008070f4654e9cb5a07af180bf08b7","observedAt":"2026-11-14T20:17:02.489+00:00","statement":{"source":"nvd","id":"CVE-2026-34157","aliases":[],"title":"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 wildcardPatternToRe…","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.","state":0,"publishedAt":"2026-11-05T21:18:47.3+00:00","modifiedAt":"2026-11-12T22:18:51.47+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","vector":"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","score":7.6,"severity":"HIGH"}],"references":["https://github.com/wailsapp/wails/commit/bcc5941b72fdab6a13942b58871a2696faa85b81","https://github.com/wailsapp/wails/pull/5074","https://github.com/wailsapp/wails/releases/tag/v2.13.0","https://github.com/wailsapp/wails/security/advisories/GHSA-47hv-j4px-h3c9"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-34157","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-625"],"productCriteria":[],"sourceDates":{"published":"2026-11-05T21:18:47.300","lastModified":"2026-11-12T22:18:51.470"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-34157","identifiers":["CVE-2026-34157"]},"retained":false,"historicalAffected":[]},{"revision":"d0887fcb1aa94396815f72b8da1c8ca2","observedAt":"2026-11-05T23:38:32.248+00:00","statement":{"source":"osv","id":"GHSA-47hv-j4px-h3c9","aliases":["CVE-2026-34157","GO-2026-6862"],"title":"Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins","description":"# Security Vulnerability Report: Wails v2 — Origin Validator Bypass via Wildcard Pattern\n\n| | |\n|---|---|\n| **Product** | wailsapp/wails (v2) |\n| **Affected File** | `v2/internal/frontend/originvalidator/originValidator.go` |\n| **Affected Versions** | All versions containing originValidator (latest as of 2026-03-26) |\n| **CVSSv4.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` |\n| **CWE** | CWE-625: Permissive Regular Expression |\n| **Platforms** | Windows / Linux / macOS (all desktop targets) |\n\n---\n\n## Summary\n\nWails v2 provides `BindingsAllowedOrigins` to restrict which web origins can invoke Go backend methods via IPC. The wildcard pattern matching in `wildcardPatternToRegex` converts `*` to `.*` without anchoring subcomponents, allowing suffix-matched origins to bypass the restriction.\n\nAn attacker who controls a domain sharing a prefix with the allowed origin (e.g., `myapp.community` when `myapp.com*` is configured) can invoke arbitrary bound Go methods, potentially achieving file system access, data exfiltration, or code execution depending on the application's exposed API surface.\n\n---\n\n## Vulnerability Details\n\n### Root Cause\n\n`wildcardPatternToRegex` converts a wildcard pattern to a regular expression by escaping special characters and replacing `*` with `.*`. The substituted `.*` has no restriction — it matches any character sequence including dots and additional domain components.\n\n### Vulnerable Code\n\n**File:** `v2/internal/frontend/originvalidator/originValidator.go`\n\n```go\nfunc (v *OriginValidator) wildcardPatternToRegex(wildcardPattern string) string {\n    specialChars := []string{\"\\\\\", \".\", \"+\", \"?\", \"^\", \"$\", \"{\", \"}\", \"(\", \")\", \"|\", \"[\", \"]\"}\n\n    escaped := wildcardPattern\n    for _, specialChar := range specialChars {\n        escaped = strings.ReplaceAll(escaped, specialChar, \"\\\\\"+specialChar)\n    }\n\n    // * becomes .* — matches ANY character sequence, including dots and domain separators\n    escaped = strings.ReplaceAll(escaped, \"*\", \".*\")\n\n    return \"^\" + escaped + \"$\"\n}\n```\n\nThe generated regex for `https://myapp.com*` is:\n\n```\n^https://myapp\\.com.*$\n```\n\nThis matches any string beginning with `https://myapp.com`, including:\n\n- `https://myapp.community` — different TLD\n- `https://myapp.com.attacker.com` — attacker-controlled subdomain\n- `https://myapp.comXXXXX` — any arbitrary suffix\n\n### Scope Note\n\nThe official comment in `options.go` gives `https://*.myapp.com` as the example pattern (subdomain prefix wildcard). This pattern is **not affected**. The vulnerability only manifests when developers use a trailing wildcard (`myapp.com*`), which is a natural misuse when intending to permit a domain and all its subpaths or ports.\n\n---\n\n## Impact\n\nAny Go method registered with Wails bindings becomes callable from the attacker's origin. Depending on the application:\n\n- File system read / write (common in desktop apps)\n- Database queries\n- OS command execution (if exposed via bindings)\n- Sensitive configuration or credential access\n\n---\n\n## Fix\n\n**PR:** https://github.com/wailsapp/wails/pull/5074\n\nWildcards are now only expanded when they represent a full domain component (immediately after `://`, `.`, or `:`). A wildcard appended to a partial label (e.g. `com*`) is stripped, preventing suffix-based bypasses. Comprehensive test suite added.\n\n---\n\n## Disclosure Timeline\n\n| Date | Event |\n|---|---|\n| 2026-03-26 | Vulnerability discovered during source code audit by @Saku0512 |\n| 2026-03-26 | Private report submitted via GitHub Security Advisory |\n| 2026-03-26 | Vendor acknowledgement and fix PR opened (#5074) |\n| TBD | Patch release |\n| TBD + 90 days | Public disclosure deadline |","state":0,"publishedAt":"2026-10-27T13:29:47+00:00","modifiedAt":"2026-11-05T23:25:53.0425004+00:00","affected":[{"ecosystem":"Go","name":"github.com/wailsapp/wails/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.13.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["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"],"sourceUrl":"https://github.com/advisories/GHSA-47hv-j4px-h3c9","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-47hv-j4px-h3c9","identifiers":["GHSA-47hv-j4px-h3c9","CVE-2026-34157","GO-2026-6862"]},"retained":false,"historicalAffected":[]},{"revision":"81dbe5eb026341dd8d98e11e7ccd75e7","observedAt":"2026-11-05T23:38:32.248+00:00","statement":{"source":"osv","id":"GO-2026-6862","aliases":["CVE-2026-34157","GHSA-47hv-j4px-h3c9"],"title":"Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins in github.com/wailsapp/wails","description":"Wails: wildcardPatternToRegex allows Origin bypass via suffix match in BindingsAllowedOrigins in github.com/wailsapp/wails","state":0,"publishedAt":"2026-11-05T22:54:32+00:00","modifiedAt":"2026-11-05T23:15:14.5065768+00:00","affected":[{"ecosystem":"Go","name":"github.com/wailsapp/wails/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.13.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/wailsapp/wails/security/advisories/GHSA-47hv-j4px-h3c9","https://github.com/wailsapp/wails/commit/bcc5941b72fdab6a13942b58871a2696faa85b81","https://github.com/wailsapp/wails/pull/5074"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-6862","license":"OSV · upstream source license applies","key":"osv:GO-2026-6862","identifiers":["GO-2026-6862","CVE-2026-34157","GHSA-47hv-j4px-h3c9"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T08:30:46.6793194+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T08:30:46.6793194+00:00","lastSuccessAt":"2026-11-16T08:30:46.8328706+00:00","error":null,"lastVerifiedAt":"2026-11-16T08:30:46.8328717+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-0d0698531b6388f35e338e054da40f0ccbc0a649cfd16195db63cd1681c3b5e5","complete":true,"records":425883,"lastAttemptAt":"2026-11-16T08:30:46.2657688+00:00","lastSuccessAt":"2026-11-16T08:30:46.2568407+00:00","error":null,"lastVerifiedAt":"2026-11-16T08:30:46.2657688+00:00","snapshotPublishedAt":"2026-11-16T07:37:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-82d9a9fcefd8411fbce85a2be8dc81ec","complete":false,"records":13821,"lastAttemptAt":"2026-11-16T08:35:26.6765861+00:00","lastSuccessAt":"2026-11-16T08:35:26.672+00:00","error":"114 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T08:35:26.672+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13760,"expectedIdentifiers":13874,"failedIdentifiers":114},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T08:30:46.6793194+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T08:30:46.6793194+00:00","lastSuccessAt":"2026-11-16T08:30:46.8336544+00:00","error":null,"lastVerifiedAt":"2026-11-16T08:30:46.8336546+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-4fef0af0d2174a1fb1c51091c7dbd455","complete":false,"records":13833,"lastAttemptAt":"2026-11-16T08:31:19.396193+00:00","lastSuccessAt":"2026-11-16T08:31:19.393+00:00","error":"600 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T08:31:19.393+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13274,"expectedIdentifiers":13874,"failedIdentifiers":600},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T08:30:46.6310988+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T08:30:46.6310988+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T08:30:46.4166589+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T08:30:46.4166589+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T08:30:46.6489716+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T08:30:46.6489716+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-263d9c8d63997345727b11314d9b9377eba9fd4146f04497c069a15e332b60cb","complete":true,"records":232482,"lastAttemptAt":"2026-11-16T08:30:46.5196945+00:00","lastSuccessAt":"2026-11-16T07:32:30.5701252+00:00","error":null,"lastVerifiedAt":"2026-11-16T08:30:46.5196945+00:00","snapshotPublishedAt":"2026-11-16T06:48:00+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}