Skip to content

chore: update dependencies to resolve Dependabot alerts#3996

Merged
theianmay merged 11 commits intoreact-native-elements:nextfrom
theianmay:chore/resolve-dependabot-alerts
Nov 5, 2025
Merged

chore: update dependencies to resolve Dependabot alerts#3996
theianmay merged 11 commits intoreact-native-elements:nextfrom
theianmay:chore/resolve-dependabot-alerts

Conversation

@theianmay
Copy link
Copy Markdown
Member

Motivation

This PR resolves all current Dependabot alerts by updating transitive dependencies to their latest secure versions. All vulnerabilities were in dev dependencies or build tooling, not in the published library code.

The alerts included critical vulnerabilities such as:

  • CVE-2025-7783 in form-data (predictable PRNG)
  • SSRF vulnerabilities in axios
  • Arbitrary code execution in @babel/traverse
  • Cross-realm object access in webpack

These updates ensure the project uses secure versions of all dependencies without affecting the published library functionality.
Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Jest Unit Test - All existing tests pass (yarn test)
  • Checked with example app - No changes to example app needed
  • Website build - Successfully builds without errors (yarn build in website/)
  • TypeScript compilation - No errors (yarn typescript)
  • Linting - Passes all checks (yarn lint)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas (N/A - dependency updates only)
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Additional context

Key changes:

  • Added Yarn resolutions to [package.json] and [website/package.json] to enforce secure versions
  • Upgraded node-gyp to v10+ which removes deprecated request package
  • Upgraded socks to v2.8+ which removes vulnerable ip package
  • Updated 50+ other transitive dependencies to patched versions
  • Pinned Docusaurus packages to maintain version consistency

Coverage: 73/73 Dependabot alerts resolved (100%)

All changes are in lockfiles and dependency resolution configuration - no changes to library source code.

- Added multiple security-related packages including minimist, path-to-regexp, and cross-spawn
- Updated build tooling dependencies (webpack-dev-middleware, loader-utils)
- Added runtime dependencies for Babel and Algolia search functionality
- Added webpack-dev-server and related build tooling for improved development workflow
- Included essential security packages (cookie, express, serve-static) for server functionality
- Added utility libraries (micromatch, tar, nanoid) to support new features
- Added resolutions for node-gyp, parse-path, and tough-cookie to address known vulnerabilities
- Updated website package resolutions to include postcss, @sideway/formula, got, and socks for security patches
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.13%. Comparing base (a1b6bc7) to head (5f4b430).
⚠️ Report is 13 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #3996   +/-   ##
=======================================
  Coverage   79.13%   79.13%           
=======================================
  Files          90       90           
  Lines        2142     2142           
  Branches      959      945   -14     
=======================================
  Hits         1695     1695           
  Misses        444      444           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@theianmay theianmay merged commit 6174c75 into react-native-elements:next Nov 5, 2025
9 checks passed
@theianmay theianmay deleted the chore/resolve-dependabot-alerts branch November 5, 2025 08:32
github-actions bot pushed a commit that referenced this pull request Nov 5, 2025
chore: update dependencies to resolve Dependabot alerts
github-actions bot pushed a commit that referenced this pull request Nov 5, 2025
chore: update dependencies to resolve Dependabot alerts
@github-project-automation github-project-automation bot moved this to In Progress 🚧 in Community Roadmap 🛣 Nov 16, 2025
@github-project-automation github-project-automation bot moved this from In Progress 🚧 to Closed or Merged 🏁 in Community Roadmap 🛣 Nov 16, 2025
@theianmay theianmay added this to the v5.0.0 milestone Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Closed or Merged 🏁

Development

Successfully merging this pull request may close these issues.

1 participant