VDB
EN
MEDIUM

GHSA-68g3-v927-f742

Next.js: Cache confusion of response bodies for requests with bodies

빠른 조치

GHSA-68g3-v927-f742 — next: 아래 명령으로 수정 버전으로 올리세요.

npm install next@15.5.21

상세

## Impact

A server-side `fetch` with a request body may return a cached **response** body from a different request to the same URL but different body. Confidential data in the `POST`'s **response** body would then leak to unauthorized requests. Though the request itself will not be deduped.

This only applies to `fetch` calls with a request that has a different init than the one passed to `fetch`. Safe: `fetch(new Request(init), init)` Unsafe: `fetch(new Request(init), aDifferentInit)`

## Workarounds

No workaround exists besides upgrading. Applications using Pages Router are not vulnerable.

이 버전이 영향받나요?

사용 중인 패키지 버전을 입력하면 즉시 평가합니다.

영향 패키지

npm / next
최초 영향 버전: 13.0.0 수정 버전: 15.5.21
수정 npm install next@15.5.21
npm / next
최초 영향 버전: 16.0.0 수정 버전: 16.2.11
수정 npm install next@16.2.11

참고