OWASP / OWASP/cve-lite-cli

feat: improve Bun parser to preserve multiple dependency paths to the same package

Open
#422 1 comment 0 reactions 1 assignee View on GitHub

@sonukapoor is already working on this.

Since May 23, 2026.

enhancement parser
Dominant language
TypeScript
Stars
715
Forks
145
Avg merge
21h 39m
Merged PRs (30d)
66

Description

The pnpm parser was updated (#335) to preserve multiple dependency paths when the same package@version appears via different parent chains. The Bun parser has the same underlying problem — it currently collapses or approximates parent paths, meaning remediation output can only describe one path when a transitive package is reachable via multiple parents.

Impact: When a transitive vulnerability has multiple paths to it, the CLI may generate a fix command that only targets one parent. The output correctly marks these as path-specific, but users need all relevant paths to understand the full remediation scope.

Work to do:

  • Audit the Bun lockfile parser (src/parsers/bun*.ts) for cases where multiple paths to the same package@version are collapsed into one
  • Preserve all distinct paths using bounded traversal (same approach as the pnpm fix in #335)
  • Add regression tests using a Bun lockfile fixture with a package reachable via multiple parents
  • Run npm test && npm run build

Keep this separate from remediation wording changes — this is purely about path discovery accuracy.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.