fix(security): resolve npm audit vulnerabilities#66
Merged
Conversation
…gh, 3 moderate) - Upgrade astro 6.x → 7.1.3 (fixes 3 XSS: reflected, spread attr, transition directives) - Upgrade @astrojs/vercel 10.x → 11.0.3, @astrojs/mdx 6.x → 7.0.3 - Upgrade astro-compress 2.3.8 → 2.4.1 - Add npm overrides for svgo >=4.0.2 and sharp ^0.35.3 to force safe transitive deps - Remove conflicting vite ^7 override (Astro 7 requires Vite 8) - Wrap BasicScripts.astro top-level <script> in IIFE for Rolldown strict mode - Fixes: tar PAX path confusion, sharp libvips CVEs, svgo removeScripts bypass, brace-expansion DoS, fast-uri host confusion Resolves: npm audit 10 → 0 vulnerabilities Signed-off-by: dongjiang <dongjiang1989@126.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
FenjuFu
approved these changes
Jul 24, 2026
FenjuFu
left a comment
Contributor
There was a problem hiding this comment.
Reviewed the dependency updates, Astro 7 compatibility change, and changelog entry. No blocking issues found; all required checks pass.
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
Resolves all 10
npm auditvulnerabilities on the repository, bringing the count from 10 → 0.ref: https://github.com/iflytek/website/security/dependabot
Fixed
transition:*directive values (GHSA-4g3v-8h47-v7g6, GHSA-f48w-9m4c-m7f5, GHSA-7pw4-f3q4-r2p2){}group expansion DoS (GHSA-3jxr-9vmj-r5cp)Changed
astro^6.4.8 → ^7.1.3 (major — Astro 7 ships with Vite 8 + Rolldown)@astrojs/vercel^10.0.8 → ^11.0.3@astrojs/mdx^6.0.3 → ^7.0.3astro-compress^2.3.8 → ^2.4.1svgo >=4.0.2,sharp ^0.35.3to force safe transitive deps"vite": "^7"override (Astro 7 requires Vite 8)Compatibility
BasicScripts.astrotop-level<script>in an IIFE — Rolldown strict mode disallows top-levelreturnstatements (context)Test plan
npm audit→ 0 vulnerabilitiesnpm run check(astro check + eslint + prettier) → all passnpm run build→ successnpm run license:check→ passnpm run dev→ site renders correctly at http://localhost:4321[Unreleased]