fix(security): Upgrade esbuild to fix CORS vulnerability#879
Merged
WEIFENG2333 merged 1 commit intomasterfrom Nov 16, 2025
Merged
fix(security): Upgrade esbuild to fix CORS vulnerability#879WEIFENG2333 merged 1 commit intomasterfrom
WEIFENG2333 merged 1 commit intomasterfrom
Conversation
- 使用 npm overrides 强制 esbuild >= 0.25.0 - 修复 esbuild 开发服务器 CORS 配置漏洞 - 现在所有依赖都使用安全版本的 esbuild
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades esbuild to version 0.25.12 to address a CORS vulnerability in the development server. The fix uses npm's overrides feature to enforce a minimum version of esbuild 0.25.0 across all dependencies, ensuring that the entire dependency tree uses the patched version.
Key Changes
- Added npm overrides configuration to force esbuild >= 0.25.0
- Upgraded esbuild from 0.21.5 to 0.25.12 with updated platform-specific packages
- Bumped application version from 1.3.3 to 1.4.0 across all files
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/package.json | Added overrides field to enforce esbuild ^0.25.0 and updated package version |
| docs/package-lock.json | Updated esbuild and all platform-specific packages to 0.25.12, including new platform support (netbsd-arm64, openbsd-arm64, openharmony-arm64) |
| docs/.vitepress/config.mts | Updated softwareVersion in structured data to match new version |
| app/config.py | Updated VERSION constant from v1.3.3 to v1.4.0 |
| .github/workflows/ci.yml | Removed CI workflow file (unrelated to the security fix) |
Files not reviewed (1)
- docs/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Note
Upgrade esbuild to >=0.25 and bump app/docs to v1.4.0; remove CI workflow.
esbuild>=0.25.0viadocs/package.jsonoverrides; lockfile updates bumpesbuildto0.25.12(Node >=18).v1.4.0(app/config.py, JSON-LDsoftwareVersionindocs/.vitepress/config.mts,docs/package.json)./.github/workflows/ci.yml.Written by Cursor Bugbot for commit ae4d48d. This will update automatically on new commits. Configure here.