security: upgrade build toolchain dependencies#7739
Open
wtfiwtz wants to merge 2 commits into
Open
Conversation
Upgrade build tools and remove vulnerable packages to address multiple security vulnerabilities in the build pipeline. Changes: - package.json: * @babel/preset-env: ^7.29.0 → ^7.29.5 * babel-plugin-istanbul: ^6 → ^8.0.0 * Remove babel-plugin-transform-builtin-extend * webpack-dev-server: ^5.2.3 → ^5.2.4 * webpack-manifest-plugin: ^6.0.1 → ^5.0.1 * Remove request-cookies package * Add core-js: ^2.6.12 (explicit devDependency) - client/.babelrc: Remove babel-plugin-transform-builtin-extend config - viz-lib/package.json: Split build:babel into build:babel and build:babel:with-types; update build script - webpack.config.js: Update LessPluginAutoPrefix to use browserslist - viz-lib/webpack.config.js: Update LessPluginAutoPrefix to use browserslist - Regenerate pnpm-lock.yaml CVEs Addressed: - CVE-2025-30359, CVE-2026-6402: webpack-dev-server vulnerabilities - CVE-2026-44728: @babel/plugin-transform-modules-systemjs (via preset-env) - CVE-2023-45133: babel-traverse chain (via babel-plugin-transform-builtin-extend removal) Code Changes: - viz-lib build script split ensures type declarations still generated when needed via build:babel:with-types - Autoprefixer 10+ compatibility: Uses browserslist from package.json instead of inline browsers array - core-js added as explicit devDependency (previously transitive) Test Results: - Frontend tests: ✓ All 15 test suites passed (90 tests) - TypeScript compilation: ✓ Type checking passed Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Jun 2, 2026
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
Upgrade build tools and remove vulnerable packages to address multiple security vulnerabilities in the build pipeline.
Changes
package.json updates
Code changes
CVEs Addressed
Technical Details
viz-lib build script change
The build script split ensures type declarations are still generated when needed:
build:babel: Fast build without type generation (for watch mode)build:babel:with-types: Full build with type declarations (for production)buildscript usesbuild:babel:with-typesto maintain type generationAutoprefixer 10+ compatibility
LessPluginAutoPrefix now uses the browserslist configuration from
package.jsoninstead of an inlinebrowsersarray, which is no longer supported in Autoprefixer 10+.core-js explicit dependency
Added as explicit devDependency (was previously transitive). Required for Babel polyfills.
Test Results
Related PRs
Part of the frontend security upgrade series split from #7720:
Made with Cursor