Intel

AIKIDO-2026-334136

seroval-plugins is vulnerable to Type Confusion

GHSA-4c7f-ggfh-wm45Published Oct 5, 2026
October 5, 2026

81

CVE Score

High

Type Confusion

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.

How do I fix this?

Upgrade the seroval-plugins 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 seroval-plugins' ReadableStreamPlugin to deserialize untrusted payloads.

Versions

1.4.2 - 1.6.4

Fixed in 1.6.5

Background info

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

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