[Question]: CVE-2024-47068 still present? #4717
-
What is your question?git clone https://github.com/danny-avila/LibreChat.git git checkout v0.7.5 (or just master branch) docker build --no-cache -t libre:v1 . ❯ trivy image libre:v1
I can see in running image that package.json rollup library is a fixed version
I don't really work with node modules, but it seems like the override affects only the vite-plugin-pwa dependency. It is still present in /app/node_modules/fetch-undici/tests/rollup/package.json /app/node_modules/fetch-undici/tests/rollup $ cat package.json
if the change doesn't break anything would it be possible to replace override with following change since then it remediates CVE warning?
More DetailsWhat is the main subject of your question?No response ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It's not present, otherwise you would still see warnings in the npm terminal or our repo. ~/LibreChat$ npm ls rollup
LibreChat@v0.7.5 /home/danny/LibreChat
├─┬ @librechat/frontend@v0.7.5 -> ./client
│ ├─┬ vite-plugin-node-polyfills@0.17.0
│ │ └─┬ @rollup/plugin-inject@5.0.5
│ │ └── rollup@4.22.4 deduped
│ ├─┬ vite-plugin-pwa@0.20.5 overridden
│ │ └─┬ workbox-build@7.1.1
│ │ ├─┬ @rollup/plugin-babel@5.3.1
│ │ │ ├─┬ @rollup/pluginutils@3.1.0
│ │ │ │ └── rollup@4.22.4 deduped
│ │ │ └── rollup@4.22.4 deduped
│ │ ├─┬ @rollup/plugin-replace@2.4.2
│ │ │ ├─┬ @rollup/pluginutils@3.1.0
│ │ │ │ └── rollup@4.22.4 deduped
│ │ │ └── rollup@4.22.4 deduped
│ │ └── rollup@4.22.4 deduped
│ └─┬ vite@5.4.6
│ └── rollup@4.22.4 deduped
└─┬ librechat-data-provider@0.7.55 -> ./packages/data-provider
├─┬ @rollup/plugin-alias@5.1.0
│ └── rollup@4.22.4 deduped
├─┬ @rollup/plugin-commonjs@25.0.7
│ ├─┬ @rollup/pluginutils@5.1.0
│ │ └── rollup@4.22.4 deduped
│ └── rollup@4.22.4 deduped
├─┬ @rollup/plugin-json@6.1.0
│ └── rollup@4.22.4 deduped
├─┬ @rollup/plugin-node-resolve@15.2.3
│ └── rollup@4.22.4 deduped
├─┬ @rollup/plugin-replace@5.0.5
│ └── rollup@4.22.4 deduped
├─┬ @rollup/plugin-terser@0.4.4
│ └── rollup@4.22.4 deduped
├─┬ rollup-plugin-generate-package-json@3.2.0
│ └── rollup@4.22.4 deduped
├─┬ rollup-plugin-peer-deps-external@2.2.4
│ └── rollup@4.22.4 deduped
├─┬ rollup-plugin-typescript2@0.35.0
│ └── rollup@4.22.4 deduped
└── rollup@4.22.4 overridden |
Beta Was this translation helpful? Give feedback.
the reason for doing this on my end was to address the CVE you're concerned of: #4226
trivy is issuing the warning because it finds a reference to rollup 0.0.0 (which isn't even a valid version, earliest valid version is v0.3.1) in
/app/node_modules/fetch-undici/tests/rollup/package.json
. Further look at this file shows rollup is only used for building the test files which are likely ran as part of this library's build/publishing pipeline.If you look through
/app/node_modules/
within the docker build,rollup
isn't even installed because it's only used when building the client files during image build process, that's why you get this: