Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-p8pf-44ff-93gf

Опубликовано: 20 нояб. 2025
Источник: github
Github: Прошло ревью
CVSS4: 8

Описание

authkit-nextjs may let session cookies be cached in CDNs

In authkit-nextjs version 2.11.0 and below, authenticated responses do not defensively apply anti-caching headers. In environments where CDN caching is enabled, this can result in session tokens being included in cached responses and subsequently served to multiple users.

Next.js applications deployed on Vercel are unaffected unless they manually enable CDN caching by setting cache headers on authenticated paths.

Impact

This vulnerability may lead to session caching, potentially allowing unauthorized users to obtain another user’s session token. The severity depends on deployment configuration, caching policy, and whether authenticated routes are inadvertently cached.

Patches

Patched in authkit-nextjs 2.11.1, which applies anti-caching headers to all responses behind authentication.

Notes

Authentication middleware should set anti-caching headers for authenticated routes as a defense in depth measure, but cannot guarantee these headers will not be overwritten elsewhere in the application. We recommend the following:

  • Review your application code, middleware, and infrastructure configuration to ensure the Cache-Control headers set for authenticated paths prevent inappropriate caching
  • For application paths that require caching, do not allow user-specific or sensitive authenticated information to be included in the response data or headers

Пакеты

Наименование

@workos-inc/authkit-nextjs

npm
Затронутые версииВерсия исправления

<= 2.11.0

2.11.1

EPSS

Процентиль: 27%
0.00096
Низкий

8 High

CVSS4

Дефекты

CWE-524

Связанные уязвимости

CVSS3: 9.1
nvd
3 месяца назад

The AuthKit library for Next.js provides convenient helpers for authentication and session management using WorkOS & AuthKit with Next.js. In authkit-nextjs version 2.11.0 and below, authenticated responses do not defensively apply anti-caching headers. In environments where CDN caching is enabled, this can result in session tokens being included in cached responses and subsequently served to multiple users. Next.js applications deployed on Vercel are unaffected unless they manually enable CDN caching by setting cache headers on authenticated paths. Patched in authkit-nextjs 2.11.1, which applies anti-caching headers to all responses behind authentication.

CVSS3: 9.1
fstec
3 месяца назад

Уязвимость библиотеки AuthKit программной платформы создания веб-приложений Next.js, позволяющая нарушителю оказать воздействие на конфиденциальность и целостность защищаемой информации

EPSS

Процентиль: 27%
0.00096
Низкий

8 High

CVSS4

Дефекты

CWE-524