Intel

AIKIDO-2026-334136

seroval-plugins is vulnerable to Type Confusion

Type ConfusionGHSA-4c7f-ggfh-wm45 Published 2 days ago

81

High Risk

This Affects:

JSseroval-plugins
1.4.2 - 1.6.4
Fixed in 1.6.5
Are you affected? Scan for Free

TL;DR

ReadableStreamPlugin.deserialize in seroval-plugins casts the value read from the reference table to a Stream without a brand check and passes it to READABLE_STREAM_FACTORY_CONSTRUCTOR, whose start() callback runs synchronously during fromJSON and calls stream.on({...}) on that value. A crafted Reference node that points at an application object with an on method makes that method run during deserialization, before any error is raised. This is the same timing and type confusion primitive as the Promise resolver advisory GHSA-mv8w-475r-vwqw, reached through the ReadableStream plugin instead. The fix validates the backing source before it reaches the stream factory.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use seroval-plugins' ReadableStreamPlugin to deserialize untrusted payloads.

Background info

seroval-plugins is vulnerable to Type Confusion in versions 1.4.2 - 1.6.4.

How to fix this

Upgrade the seroval-plugins 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