跳到正文
Vercel Blog(vercel.com)· Andrew Healey·· 21 天前品質評分58

Vercel 加強 npm 安全,阻止惡意套件安裝指令碼

Blocking malicious npm packages before and during installation

重點導讀

Vercel 於 2026 年 11 月 02 日推出新功能,於建置前後即時檢查並阻止已列入封鎖清單的 npm 套件,防止惡意安裝指令碼執行。

  • 即時封鎖:在依賴安裝前後均進行檢查,封鎖已知惡意或漏洞版本。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

正文

Vercel now checks for blocked npm packages before and during dependency installation in builds, helping prevent malicious install scripts from running.

The checks use a blocklist of specific package versions selected for blocking because of malware or security vulnerabilities, with new rules typically reaching new builds within minutes.

  • Before installation, Vercel checks supported lockfiles, including when dependencies are restored from the build cache.

  • During installation, Vercel blocks affected public npm downloads.

Existing checks of installed dependencies and function outputs continue before deployment.

These protections apply automatically to new builds on all plans, with no configuration required.

If a blocked dependency is detected, Vercel fails the deployment, identifies the package and version in the error, and attempts to invalidate the affected build cache. Update the dependency to a safe version and update the lockfile, then redeploy.

來源: Vercel Blog (vercel.com)
開啟原文

讀者討論

理性交流 · 即時討論