developit / developit/microbundle

Security vulnerability via transitive dependency on `serialize-javascript` via `rollup-plugin-terser`

未關閉
#1,100 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
8.1k
分支
358
PR 合併指標
30 天內沒有已合併 PR

描述

I've started to see vulnerability reports on a number of projects that all look like this: https://github.com/bullet-train-co/bullet_train-core/security/dependabot/557

The issue arises because `microbundle` depends on the deprecated `rollup-plugin-terser` package which has its dependency on `serialize-javascript` declared with `^4.0.0`.

Updating `microbundle` to `@rollup/plugin-terser` should fix the dependency chain, but I don't know if it would introduce other issues.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

檢查 microbundle 中對 rollup-plugin-terser 的相依性宣告,以及由此產生的 serialize-javascript 相依性鏈。嘗試使用建議的 @rollup/plugin-terser 進行替換,執行現有的 build 或 test 指令,並確認漏洞已消除且未引入回歸問題。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, rollup
領域
build-system, security
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。