Intel

AIKIDO-2026-476182

seroval is vulnerable to Deserialization of Untrusted Data

CVE-2026-59940Published Jul 22, 2026
July 22, 2026

98

CVE Score

Critical

Deserialization of Untrusted Data

Are you affected? Scan for Free

TL;DR

The fromJSON() deserialization path in seroval handles Promise control nodes by operating on values taken from the general deserialization reference table without first verifying that those values are genuine internal promise resolver records. Attacker-controlled JSON can exploit this type confusion so that deserialization performs attacker-influenced side effects when plugins are enabled. In downstream frameworks that register plugins returning callable wrappers, this primitive can escalate to unintended server-side invocation and potential remote code execution. The fix adds an internal type check so deserialization aborts before operating on values that are not genuine resolver records.

How do I fix this?

Upgrade the seroval library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and deserialize untrusted Seroval JSON with plugins enabled.

Package

Versions

0.13.0 - 1.5.2

Fixed in 1.5.3

Background info

seroval is vulnerable to Deserialization of Untrusted Data in versions 0.13.0 - 1.5.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea