Skip to content
DoS Advisory Advanced

GHSL-2026-200: Untrusted Seroval payloads can exhaust server resources or invoke registered functions

The seroval deserialiser did not check that the buffer child of a typed-array or data-view node was actually an ArrayBuffer, so a crafted payload could pick a different TypedArray constructor overload. An unauthenticated attacker could send a tiny JSON body that makes the server allocate huge amounts of memory and CPU, and in some setups invoke functions registered in seroval's reference registry.

p Follow

Originally disclosed on GitHub Security Lab

seroval, the serialization library underpinning TanStack Start and Solid Start server functions, fails to validate the type of the “buffer” child when deserializing typed-array and data-view nodes in its JSON deserializers. Because the JavaScript TypedArray constructor changes behavior based on its first argument’s…

p-, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The deserialiser cast the typed-array buffer child to ArrayBuffer with a compile-time-only TypeScript cast and no runtime type check, so the TypedArray constructor dispatched to a different overload based on attacker-controlled input.

Impact

An unauthenticated attacker could cause remote denial of service with a roughly 90–142 byte request against any server passing an HTTP-received body to the deserialiser, and where functions are registered via createReference() the same flaw could invoke them; the text notes the DataView path throws before property access and so is not amplification-exploitable.

What the attacker needed

Server deserialises HTTP-received JSON; no account needed; functions registered for invocation case

The fix

The maintainer fixed it and released version 1.6.4, which presumably adds a runtime type check on the buffer child.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a server receives data from a client, it often has to turn that text back into objects, which is called deserialisation. This library assumed one part of the incoming data would always be a raw binary buffer, but never checked, so an attacker could put a number or a crafted object there instead. The JavaScript built-in that builds typed arrays then behaves differently depending on what it is given, letting a very small request make the server use enormous memory or even run a function the application had registered.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by p

View all

49 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.