#6186·wails

[v3] updater: verification is fail-open, so unsigned releases install even when Config.PublicKey is set

Author: Amir-Saatchi-NordCSCreated Sep 28, 2026Updated Sep 28, 2026
LabelsBugv3

Wails version family

v3

Exact Wails version

v3.0.0-beta.26 (pkg/updater; verify.go is identical on master)

Operating System

All

Description

Setting Config.PublicKey does not make signatures required. runVerification returns nil when the release has no Verification at all, or has a digest but no signature:

go
if v == nil {
	return nil // nothing to check
}
...
if len(v.Signature) == 0 {
	return nil // digest-only mode
}

So with a key built in, a feed or mirror that simply leaves out the signature (or every verification field) gets its artifact installed. In our tests this was accepted with PublicKey set:

  • a manifest artifact with only sha256: installed
  • a manifest artifact with no verification fields: installed
  • the same, with the file truncated: a broken exe was installed

The Config.PublicKey doc comment ("Strongly recommended for any app whose distribution channel might be compromised or proxied") reads as if setting the key protects against a compromised channel. It only does so if the attacker keeps the signature fields.

Related: the GitHub provider can't carry a signature at all, and with no checksum asset it installs the release unverified.

To Reproduce

  1. Config.PublicKey = a valid ed25519 public key, using the endpoint provider.
  2. Publish a manifest for a newer version with no signature/signatureAlgo (digest only, or nothing).
  3. CheckAndInstall: the update is staged and installed.

Expected behaviour

When Config.PublicKey is set, a release without a valid signature is rejected (fail closed). An explicit opt-out could stay available for digest-only setups.

Attempted Fixes

We now wrap the provider and reject any release without an ed25519 signature before download. That works, but it's easy to miss, and the default feels unsafe.

System Details

Windows 11 Pro 26200 (x64), Go 1.26.0, CGO_ENABLED=0, github.com/wailsapp/wails/v3 v3.0.0-beta.26. wails3 doctor was not run: the test app is built with plain go build.

Additional context

Two smaller points found in the same test:

  • the manifest size field is not checked, only used for progress
  • 1.0.1-rc.1 is offered to a 1.0.0 app as newer, since there is no channel or prerelease filter