Skip to content

Commit 37d538b

Browse files
Merge pull request #445 from frontegg/deps-security-bump
fix: bump dependencies and resolve security vulnerabilities
2 parents 3b4c628 + f4e7f7a commit 37d538b

7 files changed

Lines changed: 168 additions & 201 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": {

scripts/build.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ async function run(argv) {
7777

7878
try {
7979
const { stderr, stdout } = await exec(command, { env: { ...process.env, ...env } });
80-
// Don't treat Node/babel deprecation warnings on stderr as failure
81-
if (stderr && !/DeprecationWarning|url\.parse/.test(stderr)) {
80+
// Don't treat Node/babel deprecation warnings or Browserslist data-age
81+
// notices (e.g. "caniuse-lite is N months old") on stderr as failure
82+
if (stderr && !/DeprecationWarning|url\.parse|Browserslist/.test(stderr)) {
8283
throw new Error(`'${command}' failed with \n${stderr}`);
8384
}
8485
if (verbose) {

0 commit comments

Comments
 (0)