我剛剛安裝@Vue-cli并決定使用Vue3. 運行后vue create hello-world,它完成了專案的構建,cli說
7 moderate severity vulnerabilities
這些有多糟糕?moderate是非常主觀的。我嘗試運行npm audit fix --force,而不是說
28 vulnerabilities (16 moderate, 12 high)。
這只是您應該接受并希望沒有人利用這些漏洞的事情之一嗎?
運行 npm audit 后,它說這個
# npm audit report
ansi-regex >2.1.1 <5.0.1
Severity: moderate
Inefficient Regular Expression Complexity in chalk/ansi-regex - https://github.com/advisories/GHSA-93q8-gq69-wqmw
fix available via `npm audit fix --force`
Will install @vue/cli-service@4.5.17, which is a breaking change
node_modules/log-update/node_modules/ansi-regex
strip-ansi 4.0.0 - 5.2.0
Depends on vulnerable versions of ansi-regex
node_modules/log-update/node_modules/strip-ansi
string-width 2.1.0 - 4.1.0
Depends on vulnerable versions of strip-ansi
node_modules/log-update/node_modules/string-width
wrap-ansi 3.0.0 - 6.1.0
Depends on vulnerable versions of string-width
Depends on vulnerable versions of strip-ansi
node_modules/log-update/node_modules/wrap-ansi
log-update 2.1.0 - 3.4.0
Depends on vulnerable versions of wrap-ansi
node_modules/log-update
progress-webpack-plugin *
Depends on vulnerable versions of log-update
node_modules/progress-webpack-plugin
@vue/cli-service >=5.0.0-alpha.0
Depends on vulnerable versions of progress-webpack-plugin
node_modules/@vue/cli-service
在我看來,這一切都歸結為Inefficient Regular Expression Complexity in chalk/ansi-regex.
處理這個問題的正確方法是什么?任其發展還是像更新軟體包一樣容易?
uj5u.com熱心網友回復:
除了我的其他答案之外,我還要補充一點,現在一切都可以破解。這本身是一個問題嗎?不是真的,因為你并沒有真正發射火箭。
是不是很詭異?是的,也許是因為它聽起來如何,但最后,如果您公司中的某個人打開了一封網路釣魚電子郵件,您就會暴露,所以是的:過好自己的生活,不要太擔心。
另外,提醒一下:您安裝的每個軟體包在某些時候和各個步驟中都可能是惡意的。如果你想要一個 100% 防彈的代碼庫,你需要自己從下到上撰寫所有內容。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/450216.html
