Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions examples/pnpm-within-range/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "cve-lite-example-pnpm-within-range",
"version": "1.0.0",
"private": true,
"description": "pnpm regression fixture: transitive qs via body-parser where the parent's range already covers the fix — expect pnpm update qs, not a parent bump.",
"license": "MIT",
"dependencies": {
"body-parser": "1.20.5"
},
"pnpm": {
"overrides": {
"qs": "6.15.1"
}
}
}
351 changes: 351 additions & 0 deletions examples/pnpm-within-range/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions examples/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ Small curated projects committed to the repository. Clone the repo and scan imme
| `bun-simple` | Bun | Minimal Bun lockfile with a direct and transitive vulnerability. |
| `bun-workspace` | Bun (workspace) | Bun workspace monorepo with workspace-scoped fix commands. |
| `pnpm-simple` | pnpm | Minimal pnpm v9 lockfile with a single direct vulnerability. |
| `pnpm-within-range` | pnpm | Transitive `qs` via `body-parser` where the parent range already covers the fix — expects `pnpm update qs`, not a parent bump. |
| `pnpm-workspace` | pnpm (workspace) | pnpm workspace monorepo with workspace-scoped fix commands. |
| `wrong-parent` | npm | 3-level transitive chain where the immediate parent's range already covers the fix — expects `npm update js-cookie`, not a parent bump. |
| `no-findings` | npm | Clean project with no known vulnerabilities — demonstrates success output. |
| `lima-site` | npm | Dev-dependency scanning in a documentation site. |

Expand Down Expand Up @@ -143,7 +145,9 @@ node dist/index.js examples/yarn-classic --verbose
node dist/index.js examples/bun-simple --verbose
node dist/index.js examples/bun-workspace --verbose
node dist/index.js examples/pnpm-simple --verbose
node dist/index.js examples/pnpm-within-range --verbose
node dist/index.js examples/pnpm-workspace --verbose
node dist/index.js examples/wrong-parent --verbose
node dist/index.js examples/no-findings
node dist/index.js examples/lima-site --verbose

Expand Down