@seroval/transport JSON reader can call app-registered functions
Description
The JSON reader of @seroval/transport can call a function while it reads a message (CWE-843). This breaks the reader's documented promise that it never runs code from the messages. It is a variant of CVE-2026-104846 in a different package.
Impact
Apps that read untrusted input with fromJSONStream or createJSONReader are affected, but only if they register functions with createReference. A peer that sends messages to such a reader can make it call one of those registered functions, and can pick the value the read resolves to. What this allows depends on what the app's registered functions do. Apps that register no functions are not affected. createJSReader and fromJSStream are not part of this advisory: they run messages with eval and are documented as trusted-input only.
Affected versions
@seroval/transport 0.1.0 to 0.1.1.
Patches
Fixed in @seroval/transport 0.1.2.
Workarounds
None. If you cannot upgrade, do not read untrusted messages with the JSON reader in an app that registers functions with createReference.
References
- CVE-2026-104846 / GHSA-p6vx-979v-rg4c