fix(java): improve lz4 detection#4642
Merged
kzantow merged 2 commits intoanchore:mainfrom Feb 27, 2026
Merged
Conversation
Improve lz4 detection. Before: ``` $ syft --output purls /tmp/test-syft/ 2>/dev/null pkg:maven/org.lz4.java/lz4-java@1.8.0 ``` After: ``` $ ./syft-cli --output purls /tmp/test-syft/ 2>/dev/null pkg:maven/org.lz4/lz4-java@1.8.0 ``` And it now has intented effect with grype: ``` $ syft --output purls /tmp/test-syft/ 2>/dev/null | grype No vulnerabilities found $ ./syft-cli --output purls /tmp/test-syft/ 2>/dev/null | grype NAME INSTALLED FIXED IN TYPE VULNERABILITY SEVERITY EPSS RISK lz4-java 1.8.0 java-archive GHSA-cmp6-m4wj-q63q High < 0.1% (21st) < 0.1 lz4-java 1.8.0 1.8.1 java-archive GHSA-vqf4-7m7x-wgfc High < 0.1% (20th) < 0.1 ``` Fixes: anchore#4611 Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@surgut.co.uk>
kzantow
reviewed
Feb 27, 2026
Signed-off-by: Keith Zantow <kzantow@gmail.com>
xnox
commented
Feb 27, 2026
Contributor
Author
xnox
left a comment
There was a problem hiding this comment.
Approved with prejudice.
willmurphyscode
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve lz4 detection.
Before:
After:
And it now has intented effect with grype:
Fixes: #4611
Fixes: anchore/grype#3205