fix: resolve Dependabot security alerts and fix build for lockfile updates#2336
Open
fix: resolve Dependabot security alerts and fix build for lockfile updates#2336
Conversation
…dates Add resolve.fallback for path → path-browserify to fix build breakage caused by postman-code-generators@2.1.1 dropping its path polyfill dep. Add targeted overrides for transitive deps pinned to vulnerable ranges: - @stoplight/spectral-core pins minimatch to exact 3.1.2 (ReDoS) - copy-webpack-plugin/css-minimizer-webpack-plugin use serialize-javascript ^6.x (RCE fix is in 7.0.3+) - @stoplight/spectral-ruleset-bundler pins rollup ~2.79.2 (path traversal fix is in 2.80.0) Regenerate lockfile to pick up patched versions for deps with compatible ranges (minimatch in eslint plugins, glob). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Preview for this PR was built for commit |
barjin
approved these changes
Mar 13, 2026
Member
barjin
left a comment
There was a problem hiding this comment.
Thank you! The custom overrides are getting a bit too long for my liking, but it's probably as good as it gets for now :/
Member
Author
|
Yeah, completely agreed, I hate it as well. The spectral dependency already resolved the minimatch bump, so we just need to wait for the next version: stoplightio/spectral#2897 I'll leave this unmerged for now, we still have about two weeks to address the current reports, so hopefully they will ship it in the meantime. But we can have it prepared in case the deadline approaches. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
resolve.fallbackforpath→path-browserifyin webpack config to fix build breakage caused bypostman-code-generators@2.1.1dropping itspathpolyfill dependency (was present in 2.1.0, removed in 2.1.1). This unblocks the Renovate lockfile update PR (chore(deps): lock file maintenance #2325) and prevents future lockfile updates from breaking the build.@stoplight/spectral-core→minimatch: 3.1.5(pinned to exact3.1.2, ReDoS)copy-webpack-plugin+css-minimizer-webpack-plugin→serialize-javascript: ^7.0.4(range^6.xexcludes fix at 7.0.3+, RCE)@stoplight/spectral-ruleset-bundler→rollup: 2.80.0(range~2.79.2excludes fix at 2.80.0, path traversal)Resolves Dependabot alerts: #152, #154, #157, #160, #162
Test plan
npm run buildpasses locally🤖 Generated with Claude Code