Node.js released a security patch for a denial-of-service vulnerability affecting applications using async_hooks (including React Server Components, Next.js, and all APM tools). When async_hooks is enabled, stack overflow from deep recursion causes immediate process termination with exit code 7 instead of throwing a catchable
•15m read time• From nodejs.org
Table of contents
TL;DRThe BugWhy This Affects React and Next.jsWhy This Affects Every APM UserWhy This Is Only a Mitigation, and The Vulnerability Lies ElsewhereTechnical Deep DiveThe FixA Brief History: From async_hooks to AsyncContextFrameAffected VersionsMitigationTimelineConclusionAcknowledgmentsSort: