Skip to content

deps.dev 404 on a just-released version falls back to repo graph; try previous version first #5

Description

@Nayjest

collect_runtime_closure asks deps.dev for the package's latest version and on 404 falls straight back to the repository dependency graph.

Observed on express-rate-limit/express-rate-limit, scanned 2026-08-04 — the same day 8.6.2 was published. deps.dev had not indexed it yet (it has since), so the scan warned "deps.dev does not index npm:express-rate-limit@8.6.2" and assessed the repo graph: 1292 resolved dependencies including the whole dev/test tree (mintlify etc.), the transitive and outstanding-advisory components excluded from scoring, and scary context numbers ("15 packages carry known advisories") for a package whose runtime closure is tiny and clean.

Any project scanned on release day hits this — and active projects are scanned near releases disproportionately often, since a release triggers interest. Suggested: on 404 for the latest version, retry with the previous published version (the registry version list is already in hand) before falling back to the repo graph. A one-version-old runtime closure is far closer to the truth than the full repo graph.


Context for the maintainer question about "56 existing vulnerabilities" in express-rate-limit/express-rate-limit#673: express-rate-limit/express-rate-limit#673 (comment)

Activity

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