Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-59940 EUVD-2026-60942GHSA-mv8w-475r-vwqw

Seroval: `seroval.fromJSON()` Promise resolver type confusion invokes attacker-controlled methods during deserialization

Published Aug 18, 2026 · Updated Aug 18, 2026 · Assigned by GitHub_M

Description

Seroval facilitates JS value stringification, including complex structures beyond JSON.stringify capabilities. Prior to 1.5.3, seroval.fromJSON() allows attacker-controlled JSON Promise control nodes to operate on values from the general deserialization reference table without verifying genuine internal Promise resolver records, causing deserialization side effects with plugins enabled and potentially unintended server-side invocation or remote code execution when downstream frameworks register callable wrappers. This issue is fixed in version 1.5.3.

Affected products

VendorProductAffectedFixed
lxsmnsyc seroval < 1.5.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed opencode 1.18.26-1.1 openSUSE-SU-2026:11673-1

Affected packages

EcosystemPackageAffectedFixedRecord
npm seroval < 1.5.3 1.5.3 GHSA-mv8w-475r-vwqw

Advisories 1

References