Intel

AIKIDO-2026-310861

seroval is vulnerable to Type Confusion

CVE-2026-104846Published Sep 22, 2026
September 22, 2026

98

CVE Score

Critical

Type Confusion

Are you affected? Scan for Free

TL;DR

seroval's fromJSON() resolves and rejects deserialized Promise nodes by passing the raw decoded value to the promise's resolver, without checking whether that value is itself a thenable. A plugin produced object with a then method reaches this path, so native Promise mechanics invoke it automatically once the payload settles the promise, letting the deserialized data trigger an unintended callable. This bypasses the earlier type-confusion guard added for the same class of issue and reaches every plugin capable release. The fix rejects any deserialized value exposing a then function before it can settle a promise.

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 you use a seroval plugin that can produce a callable value.

Package

Versions

0.12.0 - 1.6.1

Fixed in 1.6.2

Background info

seroval is vulnerable to Type Confusion in versions 0.12.0 - 1.6.1.

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