CVE-2023-4863 is not detected in Sharp NPM package #5517
Closed
saars-orca
started this conversation in
False Detection
Replies: 1 comment
-
Hello @saars-orca We use Ecosystem Security Working Group and GitHub Advisory Database (npm) databases for nodejs packages - https://aquasecurity.github.io/trivy/v0.47/docs/scanner/vulnerability/#data-sources_1 There appears to be no information in these databases that the Sharp package contains CVE-2023-4863 - GHSA-j7hp-h8jx-5ppr Please, create PR in GitHub adding Best Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When creating an NPM project and installing any version of Sharp smaller than 0.32.6(I used 0.31.0), Trivy does not seem to show the CVE-2023-4863 that Sharp < 0.32.6 is vulnerable to.
Sharp does not list libwebp as a direct dependency, instead, they rely on libvips(which is an external package that is not installed by NPM).
lovell/sharp#3798
This might be why it is not detected right now.
This was their "fix" for the security vulnerability:
lovell/sharp@dbce6fa
They ask npm/yarn to verify the existing libvips version installed in the environment(sharp does not list libvips as an actual requirement). They also verify in their code during the compilation process that you have libvips version 8.14.5+ installed
Desired Behavior
Sharp should be flagged for having a security vulnerability in versions < 0.32.6 and list the CVE-2023-4863 vulnerability.
Actual Behavior
No vulnerabilities are detected.
Reproduction Steps
Target
Filesystem
Scanner
Vulnerability
Output Format
None
Mode
Standalone
Debug Output
Operating System
macOS 14 Sonoma
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions