Repository navigation
fix(echo): keep upstream advisories as a baseline for Echo packages #11621
Replies: 2 comments 3 replies
|
Hi @LaizaAngrest 👋 Thanks for the detailed analysis! Yes, this is possible, and the direction is right: upstream advisories stay as the baseline, and active Echo advisories override them by vulnerability ID. For language packages, I think this logic should be added to Trivy ( For example, we could add a new What to take into account:
And a couple of questions about the feed, since after this change a withdrawn Echo advisory will mean "use upstream":
Regards, Dmitriy |
|
Hi Dmitriy, We checked both the current 1. Withdrawn records without
|
Uh oh!
There was an error while loading. Please reload this page.
Description
Echo language packages are currently matched as supplier packages and queried only against the
echo-osvbucket, instead of the standard ecosystem advisories.This behavior was introduced for Python in #10555 and later extended to Maven, npm, NuGet, and Go.
We found that this produces false negatives when an upstream vulnerability does not have an active Echo advisory.
Python example
Using Django with the current published vulnerability database:
Django 5.2.1reports 34 vulnerabilities.Django 5.2.1+echo.3reports zero vulnerabilities.The live Echo feed contains active advisories for vulnerabilities fixed in the Echo build, but it also contains 12 withdrawn Django advisories with:
introduced: 0fixedeventFor example:
CVE-2025-13372ECHO-91c5-85b0-1e52The upstream Django advisory still affects version
5.2.1, but it disappears from the Echo scan because Trivy does not query upstream advisories after matching the Echo supplier.Go example
For
golang.org/x/net, using current Trivy main with the current published vulnerability database:v0.22.0reports 21 vulnerabilities.v0.22.0+echo.13reports only one.CVE-2023-45288was correctly fixed by Echo inv0.22.0+echo.1.The advisory that correctly suppresses
CVE-2023-45288is:https://advisory.echohq.com/osv/ECHO-326d-6f7d-c967.json
For example, the Echo advisory for
CVE-2024-45338is withdrawn, hasintroduced: 0, and has nofixedevent:https://advisory.echohq.com/osv/ECHO-bfa4-ec43-0a8d.json
Other ecosystems
The same supplier-only lookup is used for all supported Echo language ecosystems.
The current public Echo OSV feed contains the following withdrawn affected entries with no
fixedevent and no active replacement for the same package and upstream vulnerability:Not every withdrawn entry necessarily represents a false negative because some may be legitimately not applicable. However, the Python and Go examples above show that the supplier-only lookup can hide vulnerabilities that still affect the upstream base version and have no explicit Echo fix.
Proposed behavior
Could Trivy keep the standard ecosystem advisories as the baseline for Echo packages, and apply active Echo advisories as overrides?
The intended behavior would be:
A regression test should cover a package where vulnerability A was fixed by Echo while vulnerability B was not. The scan should suppress A and continue reporting B.
@DmitriyLewen, do you think this is possible and the correct direction? If so, could you please advise whether this logic belongs in Trivy or trivy-db?
All reactions