Intel

AIKIDO-2026-310861

seroval is vulnerable to Type Confusion

Type ConfusionGHSA-p6vx-979v-rg4c Published 3 days ago

98

Critical Risk

This Affects:

JSseroval
0.12.0 - 1.6.1
Fixed in 1.6.2
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.

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.

Background info

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

How to fix this

Upgrade the seroval library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform