mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
update version check alerter
This commit is contained in:
parent
3ec1d81441
commit
7a653f748d
@ -43,8 +43,8 @@ export const POST = createSmartRouteHandler({
|
||||
|
||||
const serverVersion = packageJson.version;
|
||||
|
||||
// https://vercel.com/changelog/cve-2025-55182
|
||||
if (semver.lt(clientVersion, "2.8.55")) {
|
||||
// https://vercel.com/changelog/cve-2025-55182 and https://nextjs.org/blog/security-update-2025-12-11
|
||||
if (semver.lt(clientVersion, "2.8.57")) {
|
||||
return err(true, `It seems that you may be running on an old version of Next.js/React. Please update to the newest version immediately to apply the latest security updates including one urgent vulnerability in React Server Components. See: https://vercel.com/changelog/cve-2025-55182`);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user