Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2026-59940 — seroval

🔴 CVSS 9.8 — Critical ✅ No Known Exploit CWE-502 NVD
9.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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](https://x.com/mufeedvh) from [Winfunc Research](https://winfunc.com).

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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: High — total loss, or loss the attacker controls.

Weakness class

CVE-2026-59940 is classified as CWE-502: Deserialization of Untrusted Data. Serialised data from an untrusted source is reconstructed into objects, which can trigger code during the process.

Affected software

CVE-2026-59940 is recorded against 2 packages.

  • seroval
  • unknown

Timeline and source

Published on 24 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
github.com (Package)
www.npmjs.com (Web)

Other advisories for this package

seroval has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-502: Deserialization of Untrusted Data) in other software:

Details

Severity CRITICAL
CVSS Score 9.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE CWE-502
Public Exploit ✅ No
Source NVD
Published 2026-07-24
Updated 2026-08-20
Modified 2026-07-24
Fix URL N/A

Affected Packages

Software From version Fixed in
seroval — —
unknown — —

Exploit Protection

Are you running seroval?

CVE-2026-59940 carries CVSS 9.8 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2026-59940 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2026
✓