Next.js fixes cache-poisoning flaw in version 16.4.5

  • Next.js
  • cache poisoning
  • fallback shells
  • route params

Versions 16.4.0 through 16.4.4 are affected by the flaw

Update to version 16.4.5 to resolve the security issue

Setting partialPrefetching to true is a workaround

Next.js fixed a vulnerability that could poison shared fallback shells in Cache Components. GitHub’s advisory says the issue affects versions 16.4.0 through 16.4.4 and is fixed in version 16.4.5.

The vulnerability involves placeholder route parameters supplied in requests. Applications that cannot upgrade can use the advisory’s workaround: set partialPrefetching: true in next.config. GitHub recommends upgrading to the patched version as soon as possible.