Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-AJV-15274295
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
This update includes major version upgrades for postcss-loader: 3.0.0 → 5.0.0 (High Risk)This upgrade requires structural changes to your webpack configuration and dependency management. Mandatory Changes:
Example Migration: Before (v3.0.0): {
loader: 'postcss-loader',
options: {
plugins: [require('autoprefixer')]
}
} After (v5.0.0): {
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: [require('autoprefixer')]
}
}
} css-loader: 2.1.1 → 6.0.0 (High Risk)This upgrade spans multiple major versions and aligns with Mandatory Changes:
Recommendation: Both upgrades are high-risk and require careful migration. Address the Source: Release notes
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| "repository": "zeit/next-plugins", | ||
| "dependencies": { | ||
| "css-loader": "^2.1.0", | ||
| "css-loader": "^6.0.0", |
There was a problem hiding this comment.
Major version bumps require webpack 5, project uses webpack 4
High Severity
css-loader@^6.0.0 and postcss-loader@^5.0.0 both require webpack 5 as a minimum, but the devDependencies still specify webpack: "^4.29.5". This will cause immediate build failures — postcss-loader v5 calls this.getOptions() which doesn't exist in webpack 4's loader context, resulting in a TypeError at runtime.
Additional Locations (2)
| "repository": "zeit/next-plugins", | ||
| "dependencies": { | ||
| "css-loader": "^2.1.0", | ||
| "css-loader": "^6.0.0", |
There was a problem hiding this comment.
css-loader v6 removed top-level exportOnlyLocals option
High Severity
Upgrading css-loader to v6 breaks the existing configuration in css-loader-config.js, which passes exportOnlyLocals as a top-level option. This option was removed in css-loader v4+ and moved to modules.exportOnlyLocals. Server-side CSS module rendering will silently fail to work correctly because the option is now ignored.
| "ignore-loader": "~0.1.2", | ||
| "optimize-css-assets-webpack-plugin": "^5.0.1", | ||
| "postcss-loader": "^3.0.0" | ||
| "postcss-loader": "^5.0.0" |
There was a problem hiding this comment.
postcss-loader v5 removed config option structure
High Severity
Upgrading postcss-loader to v5 breaks the existing configuration in css-loader-config.js, which passes a config option with a path property. In postcss-loader v5, the config option was removed and replaced with postcssOptions. PostCSS configuration file discovery will silently stop working.


Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):
packages/next-css/package.jsonNote for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the
.yarn/cache/directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to runyarnto update the contents of the./yarn/cachedirectory.If you are not using zero-install you can ignore this as your flow should likely be unchanged.
Vulnerabilities that will be fixed with an upgrade:
SNYK-JS-AJV-15274295
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)
Note
Medium Risk
Dependency major-version bumps in the webpack CSS pipeline may introduce breaking config/behavior changes at build time; runtime code is otherwise unchanged.
Overview
Updates
packages/next-css/package.jsonto upgradecss-loaderfrom^2.1.0to^6.0.0andpostcss-loaderfrom^3.0.0to^5.0.0(Snyk-driven vulnerability fix).Written by Cursor Bugbot for commit 22d0c5e. This will update automatically on new commits. Configure here.