Skip to content

chore: mitigate esbuild audit vulnerability by upgrading vite and overriding esbuild - #27

Merged
DavidAlexandre93 merged 1 commit into
mainfrom
codex/fix-two-moderate-severity-vulnerabilities
Mar 7, 2026
Merged

chore: mitigate esbuild audit vulnerability by upgrading vite and overriding esbuild#27
DavidAlexandre93 merged 1 commit into
mainfrom
codex/fix-two-moderate-severity-vulnerabilities

Conversation

@DavidAlexandre93

Copy link
Copy Markdown
Owner

Motivation

  • Resolve npm audit finding where vulnerable esbuild (<=0.24.2) could be pulled transitively via older vite versions.
  • Apply a minimally invasive policy change to prevent installation of vulnerable esbuild without performing a full install in an environment that blocks registry operations.

Description

  • Updated devDependencies.vite in package.json from ^5.4.11 to ^6.1.7 to move away from vite ranges that depend on vulnerable esbuild versions.
  • Added an overrides entry in package.json forcing esbuild to ^0.25.0 so transitive resolution cannot select <=0.24.2.
  • No changes to package-lock.json were made because the environment prevents npm install/lockfile updates due to registry 403 errors.

Testing

  • Verified the updated fields with npm pkg get devDependencies.vite overrides.esbuild, which returned the new vite and overrides entries successfully.
  • Attempted npm audit --json to validate the audit result but the run failed with a 403 Forbidden response from the npm advisories endpoint, so automated audit confirmation could not be completed in this environment.
  • Attempted npm install -D vite@^6.1.7 but the install failed due to 403 Forbidden responses from the registry, preventing lockfile and local dependency resolution updates.

Codex Task

@vercel

vercel Bot commented Mar 7, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 8 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/david-alexandre-fernandes-projects?upgradeToPro=build-rate-limit

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@DavidAlexandre93
DavidAlexandre93 merged commit fe104d3 into main Mar 7, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant