Skip to content

fix: resolve Dependabot security alerts and fix build for lockfile updates#2336

Open
B4nan wants to merge 1 commit intomasterfrom
fix/security-deps-and-build
Open

fix: resolve Dependabot security alerts and fix build for lockfile updates#2336
B4nan wants to merge 1 commit intomasterfrom
fix/security-deps-and-build

Conversation

@B4nan
Copy link
Member

@B4nan B4nan commented Mar 13, 2026

Summary

  • Add resolve.fallback for pathpath-browserify in webpack config to fix build breakage caused by postman-code-generators@2.1.1 dropping its path polyfill 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.
  • Add targeted overrides for 3 transitive dependencies pinned to vulnerable version ranges that can't be resolved by a lockfile refresh alone:
    • @stoplight/spectral-coreminimatch: 3.1.5 (pinned to exact 3.1.2, ReDoS)
    • copy-webpack-plugin + css-minimizer-webpack-pluginserialize-javascript: ^7.0.4 (range ^6.x excludes fix at 7.0.3+, RCE)
    • @stoplight/spectral-ruleset-bundlerrollup: 2.80.0 (range ~2.79.2 excludes fix at 2.80.0, path traversal)
  • Regenerate lockfile to pick up patched versions for deps with already-compatible ranges (minimatch in eslint plugins/glob, etc.)

Resolves Dependabot alerts: #152, #154, #157, #160, #162

Test plan

  • npm run build passes locally
  • CI docs build passes
  • Verify Dependabot alerts are dismissed after merge

🤖 Generated with Claude Code

…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>
@github-actions github-actions bot added this to the 136th sprint - Tooling team milestone Mar 13, 2026
@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Mar 13, 2026
@apify-service-account
Copy link

Preview for this PR was built for commit 84df32c and is ready at https://pr-2336.preview.docs.apify.com!

@B4nan B4nan requested a review from barjin March 13, 2026 14:10
@B4nan B4nan added the adhoc Ad-hoc unplanned task added during the sprint. label Mar 13, 2026
Copy link
Member

@barjin barjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 :/

@B4nan
Copy link
Member Author

B4nan commented Mar 13, 2026

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants