Skip to content

Commit 2dfe464

Browse files
authored
fix(deps)!: bump minimum react and next versions (#14807)
# ⚠️ Security Issue A critical-severity vulnerability in React Server Components ([CVE-2025-55182](https://www.cve.org/CVERecord?id=CVE-2025-55182)) affects React 19 and frameworks that use it, including Next.js ([CVE-2025-66478](GHSA-9qr9-h5gf-34mp)). ## Summary An unauthenticated attacker can craft malicious HTTP requests that achieve remote code execution on the server via insecure deserialization in the RSC "Flight" protocol. For exact details, please read the summary and impact statements directly from the CVEs listed above. Note: this vulnerability is not inherit of Payload itself, as Payload does not install any of these dependencies directly (with the exception of templates and examples). Payload simply _enforces_ these versions through its peer dependencies. ## Resolution **You are strongly encouraged to upgrade your own apps to the nearest patched versions of React and Next.js as soon as possible.** Here's a breakdown of the vulnerable packages and their patched releases: | Vulnerable package | Patched release | | ------------- | ------------- | | React | 19.0, 19.1, 19.2 19.0.1, 19.1.2, and 19.2.1 | | Next.js | 14.3.0-canary, 15.x, and 16.x (App Router) 14.3.0-canary.88, 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7 |
1 parent cd9addf commit 2dfe464

File tree

40 files changed

+1917
-1423
lines changed

40 files changed

+1917
-1423
lines changed

examples/astro/payload/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"@payloadcms/richtext-lexical": "3.11.0",
2828
"cross-env": "^7.0.3",
2929
"graphql": "^16.8.1",
30-
"next": "15.2.3",
30+
"next": "15.4.8",
3131
"payload": "3.11.0",
32-
"react": "19.0.0",
33-
"react-dom": "19.0.0",
32+
"react": "19.2.1",
33+
"react-dom": "19.2.1",
3434
"sharp": "0.32.6"
3535
},
3636
"devDependencies": {

examples/astro/pnpm-lock.yaml

Lines changed: 484 additions & 192 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/auth/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
"@payloadcms/richtext-slate": "latest",
2222
"@payloadcms/ui": "latest",
2323
"cross-env": "^7.0.3",
24-
"next": "^15.2.3",
24+
"next": "^15.4.8",
2525
"payload": "latest",
26-
"react": "19.0.0",
27-
"react-dom": "19.0.0",
26+
"react": "19.2.1",
27+
"react-dom": "19.2.1",
2828
"react-hook-form": "^7.51.3"
2929
},
3030
"devDependencies": {

examples/custom-components/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"dotenv": "^8.2.0",
2626
"graphql": "^16.9.0",
2727
"install": "^0.13.0",
28-
"next": "^15.2.3",
28+
"next": "^15.4.8",
2929
"payload": "latest",
30-
"react": "^19.0.0",
31-
"react-dom": "^19.0.0"
30+
"react": "^19.2.1",
31+
"react-dom": "^19.2.1"
3232
},
3333
"devDependencies": {
3434
"@swc/core": "^1.6.13",

examples/custom-server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"cross-env": "^7.0.3",
1818
"express": "^4.21.1",
1919
"graphql": "^16.8.1",
20-
"next": "15.2.3",
20+
"next": "15.4.8",
2121
"payload": "latest",
22-
"react": "19.0.0",
23-
"react-dom": "19.0.0"
22+
"react": "^19.2.1",
23+
"react-dom": "^19.2.1"
2424
},
2525
"devDependencies": {
2626
"@types/express": "^5.0.0",

examples/draft-preview/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"dotenv": "^8.2.0",
2525
"escape-html": "^1.0.3",
2626
"graphql": "^16.9.0",
27-
"next": "^15.2.3",
27+
"next": "^15.4.8",
2828
"payload": "latest",
29-
"react": "19.0.0",
30-
"react-dom": "19.0.0"
29+
"react": "19.2.1",
30+
"react-dom": "19.2.1"
3131
},
3232
"devDependencies": {
3333
"@payloadcms/graphql": "latest",

examples/email/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"ejs": "3.1.10",
2626
"graphql": "^16.9.0",
2727
"juice": "11.0.0",
28-
"next": "^15.2.3",
28+
"next": "^15.4.8",
2929
"payload": "latest",
30-
"react": "19.0.0",
31-
"react-dom": "19.0.0"
30+
"react": "^19.2.1",
31+
"react-dom": "^19.2.1"
3232
},
3333
"devDependencies": {
3434
"@payloadcms/graphql": "latest",

examples/form-builder/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"@payloadcms/richtext-lexical": "latest",
2626
"cross-env": "^7.0.3",
2727
"graphql": "^16.9.0",
28-
"next": "^15.2.3",
28+
"next": "^15.4.8",
2929
"payload": "latest",
30-
"react": "19.0.0",
31-
"react-dom": "19.0.0",
30+
"react": "19.2.1",
31+
"react-dom": "19.2.1",
3232
"react-hook-form": "^7.41.0",
3333
"react-select": "^5.9.0"
3434
},

examples/live-preview/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"dotenv": "^8.2.0",
2828
"escape-html": "^1.0.3",
2929
"graphql": "^16.9.0",
30-
"next": "^15.2.3",
30+
"next": "^15.4.8",
3131
"payload": "latest",
32-
"react": "19.0.0",
33-
"react-dom": "19.0.0",
32+
"react": "^19.2.1",
33+
"react-dom": "^19.2.1",
3434
"react-hook-form": "^7.51.3"
3535
},
3636
"devDependencies": {

examples/localization/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
"graphql": "^16.8.2",
4040
"jsonwebtoken": "9.0.2",
4141
"lucide-react": "^0.378.0",
42-
"next": "^15.2.3",
42+
"next": "^15.4.8",
4343
"next-intl": "^3.23.2",
4444
"payload": "latest",
4545
"prism-react-renderer": "^2.3.1",
46-
"react": "^19.0.0",
47-
"react-dom": "^19.0.0",
46+
"react": "^19.2.1",
47+
"react-dom": "^19.2.1",
4848
"react-hook-form": "7.45.4",
4949
"sharp": "0.32.6",
5050
"tailwind-merge": "^2.3.0",

0 commit comments

Comments
 (0)