feat: improve Bun parser to preserve multiple dependency paths to the same package
@sonukapoor is already working on this.
Since May 23, 2026.
- 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 samepackage@versionare 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.