Skip to content

fix(echo): keep upstream advisories as a baseline for Echo packages #11620

Closed as not planned

Description

@LaizaAngrest

Description

Echo language packages are currently matched as supplier packages and queried only against the echo-osv bucket, 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.1 reports 34 vulnerabilities.
  • Django 5.2.1+echo.3 reports 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: 0
  • no fixed event
  • no active replacement for the same package and upstream vulnerability

For example:

  • CVE-2025-13372
  • Echo advisory: ECHO-91c5-85b0-1e52
  • The advisory is withdrawn and does not contain a fixed version.

The 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.0 reports 21 vulnerabilities.
  • v0.22.0+echo.13 reports only one.
  • CVE-2023-45288 was correctly fixed by Echo in v0.22.0+echo.1.
  • 19 other vulnerabilities disappear without an active Echo advisory indicating that they were fixed.

The advisory that correctly suppresses CVE-2023-45288 is:

https://advisory.echohq.com/osv/ECHO-326d-6f7d-c967.json

For example, the Echo advisory for CVE-2024-45338 is withdrawn, has introduced: 0, and has no fixed event:

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 fixed event and no active replacement for the same package and upstream vulnerability:

  • Go: 257
  • Maven: 251
  • PyPI: 535
  • npm: 388
  • NuGet: 5

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:

  1. Keep upstream vulnerabilities by default.
  2. Suppress or replace an upstream finding only when an active Echo advisory explicitly defines the Echo affected/fixed range.
  3. Do not suppress an upstream finding when the Echo advisory is missing or withdrawn.
  4. Deduplicate equivalent findings, preferring the active Echo affected/fixed information when it exists.

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?

Activity

  1. github-actions commented on Nov 11, 2026

    @github-actions
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions