Trivy does not include Spring Boot 4.0.4+ JAR in SBOM #10501
-
DescriptionRunning trivy to produce an SBOM that includes Spring Boot 4.0.4+ JARs does not seem to work. NOTE: Spring Boot JARs <= 4.0.3 seem to be detected correctly and are included in SBOM. I wonder if this is an issue with the Java DB? Desired BehaviorSpring Boot JAR is listed in SBOM Actual BehaviorSpring Boot JAR is not listed in SBOM Reproduction StepsEasiest way to reproduce this is to do:
1. wget https://repo1.maven.org/maven2/org/springframework/boot/spring-boot/4.0.5/spring-boot-4.0.5.jar
2. trivy rootfs --format spdx-json --output sbom.json .
3. grep spring-boot sbom.json
I also see the same behavior when scanning a docker image that contains Spring Boot JARs: trivy image --format json --list-all-pkgs ...TargetFilesystem ScannerNone Output FormatSPDX ModeStandalone Debug Output2026-04-09T10:08:23+03:00 DEBUG [jar] Parsing Java artifacts... file_path="spring-boot-4.0.5.jar"
2026-04-09T10:08:23+03:00 DEBUG [jar] No such POM in the central repositories file="spring-boot-4.0.5.jar"Operating SystemMacOS Tahoe 26.4 VersionVersion: 0.69.3
Vulnerability DB:
Version: 2
UpdatedAt: 2026-04-09 00:34:39.595733358 +0000 UTC
NextUpdate: 2026-04-10 00:34:39.595733088 +0000 UTC
DownloadedAt: 2026-04-09 06:09:41.273803 +0000 UTC
Java DB:
Version: 1
UpdatedAt: 2026-03-19 01:17:54.395813642 +0000 UTC
NextUpdate: 2026-03-22 01:17:54.39581332 +0000 UTC
DownloadedAt: 2026-04-09 06:10:15.073205 +0000 UTCChecklist
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hello @jpalomaki <= 4.0.3 versions were identified by the SHA1 hash of the JAR file, however due to a recent incident, the trivy-java-db update is currently on hold (#10425 (comment)) and our database does not yet contain this new artifact. Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
Hello @jpalomaki
spring-boot-4.0.5.jarfile does not contain GAV (GroupID, ArtifactID, Version) inside it, which is required for Trivy's supported file formats. (see https://trivy.dev/docs/latest/guide/coverage/language/java/#jarwarparear).<= 4.0.3 versions were identified by the SHA1 hash of the JAR file, however due to a recent incident, the trivy-java-db update is currently on hold (#10425 (comment)) and our database does not yet contain this new artifact.
Once the database is updated, Trivy will be able to detect this version.
Regards, Dmitriy