Intel

AIKIDO-2026-54683

undici is vulnerable to Uncontrolled Recursion

Uncontrolled Recursion Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Today

52

Medium Risk

This Affects:

JSundici
5.15.0 - 8.10.1
Fixed in 8.10.2
Are you affected? Scan for Free

TL;DR

parseUnparsedAttributes in lib/web/cookies/parse.js recursed once per Set-Cookie attribute with no depth bound. A single response header of the form a=b;;;;... overflowed the JavaScript call stack and threw an uncaught RangeError: Maximum call stack size exceeded out of getSetCookies. An application that parses Set-Cookie headers from an untrusted peer can be crashed by thousands of empty attribute separators. The fix converts the algorithm to an iterative loop so the parser no longer grows the stack per attribute.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and parse Set-Cookie headers from untrusted responses, for example via getSetCookies or parseSetCookie.

Background info

undici is vulnerable to Uncontrolled Recursion in versions 5.15.0 - 8.10.1.

How to fix this

Upgrade the undici 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