Every CVE Search/ Get API key

CVE-2026-59940

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

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.81%Unchanged since Aug 19, 2026
90%50%10%1%

What each source reports

CVE List Score used 9.8

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

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.

Record
CVE-2026-59940
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-502, CWE-843
Updated
2026-11-02
EUVDEUVD-2026-60942 9.8

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.

Record
EUVD-2026-60942
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-mv8w-475r-vwqw 9.8

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

Summary

A type confusion issue in seroval.fromJSON() allowed attacker-controlled JSON input to cause Promise control nodes to operate on values from the general deserialization reference table without first verifying that those values were genuine internal promise resolver records.

In applications that deserialize untrusted Seroval JSON with plugins enabled, this could allow attacker-controlled deserialization side effects. In downstream server frameworks that register plugins returning callable wrappers, this primitive could become unintended server-side invocation and, depending on exposed application functionality, remote code execution or equivalent server compromise.

The issue was fixed in [email protected].

Affected package

  • Package: seroval
  • Affected API: fromJSON()
  • Affected versions: versions prior to 1.5.3 that contain the vulnerable Promise resolver reference handling
  • Patched version: 1.5.3

Impact

The vulnerable deserialization path could confuse attacker-created values in the general reference table with Seroval's internal promise resolver records.

Direct impact in seroval is a deserialization side-effect primitive when untrusted JSON is deserialized with plugins enabled. Downstream impact depends on registered plugins and framework usage. If a downstream framework registers plugins that deserialize sensitive callable wrappers, attacker-controlled input may be able to trigger unintended server-side invocation during deserialization.

A concrete downstream impact scenario was validated privately against TanStack Start before the 1.5.3 fix. With [email protected], the downstream reproducer no longer succeeds.

Remediation

Upgrade to [email protected] or later.

Downstream projects that accept Seroval JSON from untrusted clients should also consider defense-in-depth controls:

  • restrict accepted Seroval node types for client-to-server payloads;
  • allowlist plugin tags for inbound deserialization;
  • avoid registering plugins that produce callable or privileged values for untrusted inputs unless strictly necessary;
  • add regression tests ensuring deserialization cannot cause unintended server-side invocation as a side effect.

Fix verification

The original private reproducer was verified against [email protected] and no longer reproduces against [email protected].

Validation results:

Credit

Reported by Mufeed VH from Winfunc Research.

Disclosure / coordination note

The downstream TanStack Start impact was coordinated privately. Technical exploit details and proof-of-concept reproduction material have been omitted from this advisory draft for discretion.

Record
GHSA-mv8w-475r-vwqw
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-502, CWE-843
Updated
2026-11-02
NVD 9.8

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.

Record
CVE-2026-59940
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-502, CWE-843
Updated
2026-11-02
OSVGHSA-mv8w-475r-vwqw 9.8

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

Summary

A type confusion issue in seroval.fromJSON() allowed attacker-controlled JSON input to cause Promise control nodes to operate on values from the general deserialization reference table without first verifying that those values were genuine internal promise resolver records.

In applications that deserialize untrusted Seroval JSON with plugins enabled, this could allow attacker-controlled deserialization side effects. In downstream server frameworks that register plugins returning callable wrappers, this primitive could become unintended server-side invocation and, depending on exposed application functionality, remote code execution or equivalent server compromise.

The issue was fixed in [email protected].

Affected package

  • Package: seroval
  • Affected API: fromJSON()
  • Affected versions: versions prior to 1.5.3 that contain the vulnerable Promise resolver reference handling
  • Patched version: 1.5.3

Impact

The vulnerable deserialization path could confuse attacker-created values in the general reference table with Seroval's internal promise resolver records.

Direct impact in seroval is a deserialization side-effect primitive when untrusted JSON is deserialized with plugins enabled. Downstream impact depends on registered plugins and framework usage. If a downstream framework registers plugins that deserialize sensitive callable wrappers, attacker-controlled input may be able to trigger unintended server-side invocation during deserialization.

A concrete downstream impact scenario was validated privately against TanStack Start before the 1.5.3 fix. With [email protected], the downstream reproducer no longer succeeds.

Remediation

Upgrade to [email protected] or later.

Downstream projects that accept Seroval JSON from untrusted clients should also consider defense-in-depth controls:

  • restrict accepted Seroval node types for client-to-server payloads;
  • allowlist plugin tags for inbound deserialization;
  • avoid registering plugins that produce callable or privileged values for untrusted inputs unless strictly necessary;
  • add regression tests ensuring deserialization cannot cause unintended server-side invocation as a side effect.

Fix verification

The original private reproducer was verified against [email protected] and no longer reproduces against [email protected].

Validation results:

Credit

Reported by Mufeed VH from Winfunc Research.

Disclosure / coordination note

The downstream TanStack Start impact was coordinated privately. Technical exploit details and proof-of-concept reproduction material have been omitted from this advisory draft for discretion.

Record
GHSA-mv8w-475r-vwqw
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-502, CWE-843
Updated
2026-11-02
OSVopenSUSE-SU-2026:11673-1 No score

opencode-1.18.26-1.1 on GA media

These are all security issues fixed in the opencode-1.18.26-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:11673-1
Updated
2026-11-02
OSVROOT-APP-NPM-CVE-2026-59940 No score

CVE-2026-59940 in seroval - Patched by Root

Root has patched CVE-2026-59940 in the seroval package for Root:npm. Multiple fixed versions available.

Record
ROOT-APP-NPM-CVE-2026-59940
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
seroval
npm
through 1.5.2
1.5.3
seroval
npm
before 1.5.3
1.5.3
seroval
Root:npm
before 1.5.2-aikido.2
1.5.2-aikido.21.5.2-aikido.31.5.0-aikido.21.5.1-aikido.21.3.2-aikido.21.5.1-aikido.11.5.0-aikido.11.5.2-aikido.11.4.2-aikido.11.3.2-aikido.11.2.1-aikido.1
@rootio/seroval
Root:npm
before 1.5.2-root.io.2
1.5.2-root.io.21.5.2-root.io.31.5.0-root.io.21.5.1-root.io.21.3.2-root.io.21.5.1-root.io.11.5.0-root.io.11.5.2-root.io.11.4.2-root.io.11.3.2-root.io.11.2.1-root.io.1
opencode
openSUSE:Tumbleweed
From an advisory covering 3 CVEs
before 1.18.26-1.1
1.18.26-1.1

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-59940 is a critical vulnerability (CVSS 9.8) in Lxsmnsyc Seroval, published July 24, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.81%, the 57th percentile. Fixed in seroval 1.5.3.

References

MoveEnter Open