Replies: 2 comments 11 replies
-
Hello @bjoernbg There doesn't seem to be any information in the dart project about using the Therefore we can't correctly detect flutter version to overwrite If you have any ideas to detect In your case you can try to write module to use flutter version. Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
-
Created #6017 for this task. |
Beta Was this translation helpful? Give feedback.
-
Description
We are using
trivy
to generate SBOMs for our Dart/Flutter project.Trivy incorrectly generates a dependency for
flutter@0.0.0
, ignoring the sdk setting.Corresponding part of the
pubspec.lock
:As you can see it specifies
source
assdk
.Further down in the
pubspec.lock
file there is more information on the sdk version:Desired Behavior
The generated SBOM should not contain the incorrect (but unfortunately valid) version
0.0.0
.Actual Behavior
The generated SBOM contains various sdk dependencies with version
0.0.0
.For context: We import these into our dependency tracking tool (DependencyTrack by OWASP). There we get matches for a critical CVE (CVE-2022-3095 (NVD)).
Reproduction Steps
Target
None
Scanner
None
Output Format
CycloneDX
Mode
Standalone
Debug Output
Operating System
macOS Sonoma, but also Linux Debian
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions