Skip to content

Commit 3140819

Browse files
fix: bump dependencies and resolve security vulnerabilities
Close the security advisories reachable through the published @frontegg/nextjs package and the example apps. SDK production chain (enforced via root "resolutions"): - follow-redirects -> ^1.16.0 (proxy/auth header leak; via http-proxy) - cookie -> ^0.7.0 (out-of-bounds cookie parsing; via iron-session) - @babel/runtime -> ^7.26.10 (inefficient RegExp; via @frontegg/js) Example apps: - next / eslint-config-next 14.2.0 -> 14.2.35 (fixes the critical middleware authorization bypass CVE-2025-29927 and other 14.2.x CVEs) Also add a Security section to the README documenting the patched dependency posture and responsible disclosure to security@frontegg.com. Verified: `yarn build` and `yarn test` (@frontegg/nextjs) pass. Known residual: a moderate advisory in `uuid` remains inside the vendored @frontegg/redux-store bundle; its fix requires uuid v11 (a major bump) and the affected code path (v3/v5/v6 with a buffer) is not exercised, so a global override is not applied here. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 3b4c628 commit 3140819

6 files changed

Lines changed: 161 additions & 190 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and integrate them into their SaaS portals in up to 5 lines of code.
1919
- [withSSRSession](#withssrsession)
2020
- [Next.js middlewares usage](#nextjs-middlewares-usage)
2121
- for more [visit](https://docs.frontegg.com/docs/self-service-introduction)
22+
- [Security](#security)
2223

2324
## Installation
2425

@@ -384,4 +385,20 @@ export const config = {
384385

385386
To easily clone frontegg app sample and deploy with Vercel click [here](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Ffrontegg%2Ffrontegg-nextjs%2Ftree%2Fmaster%2Fdemos%2Fquick-starter-demo&env=FRONTEGG_BASE_URL,FRONTEGG_CLIENT_ID,FRONTEGG_ENCRYPTION_PASSWORD&envDescription=Used%20to%20connect%20to%20your%20frontegg%20account%20and%20encrypt%20the%20frontegg%20session%20cookie&envLink=https%3A%2F%2Fdocs.frontegg.com%2Fdocs%2Fnextjs-12-13-ssr-hosted-login%23step-4-setup-environment&project-name=my-frontegg-app&repository-name=my-frontegg-app&demo-title=Authentication&demo-description=Basic%20application%20with%20Frontegg%20authentication%20&demo-url=https%3A%2F%2Fmy-frontegg-app.vercel.app&demo-image=https%3A%2F%2Ffronteggprodeustorage.blob.core.windows.net%2Fpublic-vendor-assets%2F4f091b2c-5755-4145-a313-10d9a530276f%2Fassets%2Flogo-fa2b14b1-d07d-49fd-8c24-a51f5d92c4d7.png)
386387

388+
## Security
389+
390+
The `@frontegg/nextjs` SDK is actively maintained, and its dependencies are kept on current, patched versions. Patched versions of transitive dependencies are enforced through the `resolutions` field in the root `package.json`.
391+
392+
To keep your application protected, always use the latest release:
393+
394+
```bash
395+
yarn add @frontegg/nextjs@latest
396+
# or
397+
npm install @frontegg/nextjs@latest
398+
```
399+
400+
### Reporting a vulnerability
401+
402+
If you discover a security vulnerability in this SDK, please report it responsibly by emailing **security@frontegg.com**. Please do not open a public GitHub issue for security reports.
403+
387404

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,10 @@
7575
"workspaces": [
7676
"packages/*"
7777
],
78+
"resolutions": {
79+
"follow-redirects": "^1.16.0",
80+
"cookie": "^0.7.0",
81+
"@babel/runtime": "^7.26.10"
82+
},
7883
"dependencies": {}
7984
}

packages/example-app-directory/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"@types/react": "^18",
1515
"@types/react-dom": "^18",
1616
"eslint": "^10.0.2",
17-
"eslint-config-next": "14.2.0",
18-
"next": "14.2.0",
17+
"eslint-config-next": "14.2.35",
18+
"next": "14.2.35",
1919
"react": "^18.3.0",
2020
"react-dom": "^18.3.0",
2121
"typescript": "5.9.3"

packages/example-pages/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test:dev": "concurrently \"yarn test:dev-1\" \"yarn test:dev-2\" \"yarn test:dev-3\""
1515
},
1616
"dependencies": {
17-
"next": "^14.2.0",
17+
"next": "^14.2.35",
1818
"react": "^18.3.0",
1919
"react-dom": "^18.3.0"
2020
},
@@ -23,7 +23,7 @@
2323
"@types/react": "^18",
2424
"@types/react-dom": "^18",
2525
"eslint": "^10.0.2",
26-
"eslint-config-next": "14.2.0",
26+
"eslint-config-next": "14.2.35",
2727
"typescript": "5.9.3"
2828
},
2929
"browserslist": {

packages/example-ssg/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"lint": "next lint"
1111
},
1212
"dependencies": {
13-
"next": "^14.2.0"
13+
"next": "^14.2.35"
1414
},
1515
"devDependencies": {
1616
"@types/node": "^20",
1717
"@types/react": "^18",
1818
"@types/react-dom": "^18",
1919
"eslint": "^10.0.2",
20-
"eslint-config-next": "14.2.0",
20+
"eslint-config-next": "14.2.35",
2121
"typescript": "5.9.3"
2222
},
2323
"browserslist": {

0 commit comments

Comments
 (0)