Skip to content

Publisher CVEs: Prefer ECOSYSTEM version fixes #195

@dotNomad

Description

@dotNomad

When there are multiple fixes registered in ranges in the Package Manager API response for /repos/{repo}/vulns we can see SEMVER, ECOSYSTEM, and/or GIT fixes.

SEMVER: semantic version range. Not always used, and some ecosystems
may not use semantic versioning, so ranges are specified with
ECOSYSTEM instead.
ECOSYSTEM: package ecosystem specific version range.
GIT: full-length Git commit hash version range.

The extension should prefer using ECOSYSTEM rather than the first listed.

For example the "certifi" package in Pypi shows both GIT and ECOSYSTEM fixes.

{
  ...
  "certifi": [
  ...
  {
    "id": "PYSEC-2024-230",
    "versions": {
      ...
    },
    "ranges": [
      {
        "type": "GIT",
        "repo": "https://github.com/certifi/python-certifi",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "bd8153872e9c6fc98f4023df9c2deaffea2fa463"
          },
          {
            "fixed": "bd8153872e9c6fc98f4023df9c2deaffea2fa463"
          }
        ]
      },
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "2021.5.30"
          },
          {
            "fixed": "2024.7.4"
          }
        ]
      }
    ],
    "details": "Certifi is a curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts. Certifi starting in 2021.05.30 and prior to 2024.07.4 recognized root certificates from `GLOBALTRUST`. Certifi 2024.07.04 removes root certificates from `GLOBALTRUST` from the root store. These are in the process of being removed from Mozilla's trust store. `GLOBALTRUST`'s root certificates are being removed pursuant to an investigation which identified \"long-running and unresolved compliance issues.\"",
    "aliases": [
      "CVE-2024-39689",
      "GHSA-248v-346w-9cwc"
    ],
    "severity": [
      {
        "type": "CVSS_V3",
        "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
      }
    ],
    "modified": "2025-02-12T21:42:09.790076Z",
    "published": "2024-07-05T19:15:10Z"
  },
  ]
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions