undici is vulnerable to Uncontrolled Recursion
52
Medium Risk
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.
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.
undici is vulnerable to Uncontrolled Recursion in versions 5.15.0 - 8.10.1.
Upgrade the undici library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.