-
Notifications
You must be signed in to change notification settings - Fork 231
Upgrade the next version to 16.0.7 and react to 19.2.7 to fix the CVE-2025-55182 issue #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,48 +1,74 @@ | ||
| import { FlatCompat } from "@eslint/eslintrc" | ||
| import { defineConfig, globalIgnores } from "eslint/config" | ||
| import nextVitals from "eslint-config-next/core-web-vitals" | ||
| import nextTs from "eslint-config-next/typescript" | ||
| import eslintConfigPrettier from "eslint-config-prettier" | ||
| import simpleImportSort from "eslint-plugin-simple-import-sort" | ||
| import { dirname } from "path" | ||
| import { fileURLToPath } from "url" | ||
|
|
||
| const __filename = fileURLToPath(import.meta.url) | ||
| const __dirname = dirname(__filename) | ||
| const eslintConfig = defineConfig([ | ||
| ...nextVitals, | ||
| ...nextTs, | ||
| // Override default ignores of eslint-config-next. | ||
|
|
||
| const compat = new FlatCompat({ | ||
| baseDirectory: __dirname, | ||
| }) | ||
|
|
||
| const eslintConfig = [ | ||
| ...compat.extends("next/core-web-vitals", "next/typescript", "prettier"), | ||
| // Custom plugins and rules | ||
| { | ||
| plugins: { | ||
| "simple-import-sort": simpleImportSort, | ||
| }, | ||
| rules: { | ||
| // Simple import sort rules | ||
| "simple-import-sort/imports": [ | ||
| "error", | ||
| { | ||
| groups: [ | ||
| // React and external packages | ||
| ["^react", "^@?\\w"], | ||
| // Internal packages | ||
| ["^(@|components)(/.*|$)"], | ||
| // Side effect imports | ||
| ["^\\u0000"], | ||
| // Parent imports | ||
| ["^\\.\\.(?!/?$)", "^\\.\\./?$"], | ||
| // Other relative imports | ||
| ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"], | ||
| // Style imports | ||
| ["^.+\\.?(css)$"], | ||
| ], | ||
| }, | ||
| ], | ||
| "simple-import-sort/exports": "error", | ||
|
|
||
| // TypeScript rule adjustments | ||
| "@typescript-eslint/no-explicit-any": "off", | ||
| "@typescript-eslint/no-unused-vars": [ | ||
| "warn", | ||
| { | ||
| argsIgnorePattern: "^_", | ||
| varsIgnorePattern: "^_", | ||
| caughtErrorsIgnorePattern: "^_", | ||
| }, | ||
| ], | ||
|
|
||
| // React hooks rules adjustments | ||
| "react-hooks/set-state-in-effect": "warn", // Downgrade from error to warning | ||
| }, | ||
| }, | ||
| { | ||
| ignores: [ | ||
| "node_modules/**", | ||
| ".next/**", | ||
| "out/**", | ||
| "build/**", | ||
| "next-env.d.ts", | ||
| "components/ui/**", | ||
| ], | ||
| }, | ||
| ] | ||
|
|
||
| // Prettier config should be last to override conflicting rules | ||
| eslintConfigPrettier, | ||
|
|
||
| globalIgnores([ | ||
| // Default ignores of eslint-config-next: | ||
| "node_modules/**", | ||
| ".next/**", | ||
| "out/**", | ||
| "build/**", | ||
| "next-env.d.ts", | ||
| "components/ui/**", | ||
| "components/animate-ui/**", | ||
| "lib/api-client.examples.ts", | ||
| "lib/api-usage-examples.ts" | ||
| ]), | ||
| ]) | ||
|
|
||
| export default eslintConfig | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,10 +1,10 @@ | ||||||
| { | ||||||
| "name": "Fulling", | ||||||
| "name": "fulling", | ||||||
| "version": "0.4.1", | ||||||
| "private": true, | ||||||
| "scripts": { | ||||||
| "prepare": "prisma generate", | ||||||
| "dev": "next dev -H 0.0.0.0 -p 3000 --turbo", | ||||||
| "dev": "next dev -H 0.0.0.0 -p 3000", | ||||||
|
||||||
| "dev": "next dev -H 0.0.0.0 -p 3000", | |
| "dev": "next dev --turbo -H 0.0.0.0 -p 3000", |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CVE identifier "CVE-2025-55182" appears to be invalid. CVE IDs for 2025 would typically be in the format CVE-2025-XXXXX (where XXXXX is a number up to 5 digits), but 55182 is outside the normal range. Additionally, this is dated December 2025 which is in the future. Please verify the correct CVE identifier for the security issue being addressed.