next is vulnerable to Information Disclosure
78
CVE Score
High
Information Disclosure
A race condition in next lets data cached by a use cache function leak across root params (for example, between locales). It happens when the same function is called both directly during rendering and through unstable_cache(), and it reads a root param. During a cold process start, an unstable_cache() call can join the in-flight fill of a concurrent direct call and receive its result, bypassing the root param check. unstable_cache() then stores that result under a cache key without root params, so later requests for other root param values receive the same entry until it is revalidated or evicted.
Upgrade next to version 16.4.5 or later. If you cannot upgrade, do not call use cache functions through unstable_cache(); outside the race, this nesting already throws the error use cache inside unstable_cache() is unsupported, and avoiding it fully mitigates the issue.
You are affected if you use a version within the vulnerable range, use use cache functions that read a root param, and call the same function both directly during rendering and through unstable_cache(). Exploitation requires the unstable_cache() request to arrive while the function's first fill after a process start is still in flight.
16.3.0 - 16.4.4
Fixed in 16.4.5next is vulnerable to Information Disclosure in versions 16.3.0 - 16.4.4.
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.
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.