我在 js 代码中使用 xlsx。从去年开始就运转良好。今天我开始遇到问题并且构建失败。由于:
$ yarn audit: yarn audit v1.22.19 ┌───────────────────────────────────────────────────────────────────────────── │ moderate: Prototype Pollution in sheetJS ├───────────────────────────────────────────────────────────────────────────── │ Package: xlsx ├───────────────────────────────────────────────────────────────────────────── │ Patched in: >=0.19.3 ├───────────────────────────────────────────────────────────────────────────── │ Dependency of: xlsx ├───────────────────────────────────────────────────────────────────────────── │ Path: xlsx ├───────────────────────────────────────────────────────────────────────────── │ More info: https://www.npmjs.com/advisories/1091817 └─────────────────────────────────────────────────────────────────────────────
很明显,解决方案是升级到版本 0.19.3 或更高版本,但最新版本是 0.18.5,因为:https://www.npmjs.com/package/xlsx?activeTab=readme。
有什么办法可以解决这个问题吗?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号