Repository navigation
function-wasm-v1.0.3
Caution
This is a security release, and every installation of 1.0.0, 1.0.1 or 1.0.2 should upgrade. Whoever chooses the module a step runs could crash the runtime, and with it every Composition the function serves.
function-wasm 1.0.3 moves Wasmtime from 50.0.1 to 50.0.3, which fixes that crash. The Input, the flags, the manifest and the world are unchanged, and a module built for 1.0.0 runs without a rebuild.
Security
A module could crash the runtime
function-wasm builds Wasmtime without its gc feature. Wasmtime 50.0.1 built that way still accepts the function subtypes of the WebAssembly GC proposal, and its run-time subtype check is a stub that panics. The panic can't unwind out of compiled code, and the process aborts. A component whose call_indirect finds a function of a declared subtype in its table triggers it, with no grant. A Composition could name such a module, or the composite resource could through module.from where the policies permit its location. Each reconcile that ran it ended the runtime process and every run in flight.
The ABI v2 contract says the engine refuses the GC proposal at compile, and it doesn't: 1.0.3 compiles such a module and runs it (GHSA-rc4p-x33f-vpr2, #436).
Other advisories
The same Wasmtime releases fix eight more advisories. Each needs something the runtime doesn't do or use:
| Advisory | What it needs |
|---|---|
| GHSA-5m8g-xhq4-4h93 | an output stream backed by AsyncWriteStream; a guest's stdout and stderr aren't |
| GHSA-43j2-gcp4-m22g | a host function that returns GC references |
| GHSA-xrvr-8678-5wp8 | two component instances in one store; every run has a store of its own |
| GHSA-hj27-mpw9-ff4c | a core module; the runtime serves components only |
| GHSA-wvgq-g5hf-6gm6 | a memory that can't move, with a reservation that isn't a multiple of the page size |
| GHSA-2674-w29h-wqvj | the threads proposal turned on in a build without the threads feature |
| GHSA-f8mm-ggr3-89wh | a wasi:http body sent over HTTP/2 by Wasmtime's own client; the runtime sends through its egress client |
| GHSA-f2pq-268w-886c | a Windows host |
1.0.3 also moves url to 2.5.9 (RUSTSEC-2026-0592, #436). Before it, Url::origin overflowed the stack on a deeply nested blob: URL. 1.0.1 called it on a manifestURL of any scheme, and whoever chose the module could crash 1.0.1 with one. 1.0.0 doesn't call it, and 1.0.2 refuses a manifestURL that isn't http or https at admission.
World, Wasmtime and WASI versions
Serves guestfn:function@1.0.0 on Wasmtime 50.0.3: WASI 0.2.12 (cli, clocks, http, io) for the sync scaffolds and WASI 0.3.0 (cli, clocks, http) for the rust scaffold.
Merged pull requests
- fix(security): move wasmtime to 50.0.3 by @jonasz-lasut in #436
Full changelog: function-wasm-v1.0.2...function-wasm-v1.0.3