Skip to content

Fixture(#11)/multiple versions same pkg#633

Merged
sonukapoor merged 6 commits into
OWASP:mainfrom
coder-Yash886:fixture/multiple-versions-same-pkg
Jun 13, 2026
Merged

Fixture(#11)/multiple versions same pkg#633
sonukapoor merged 6 commits into
OWASP:mainfrom
coder-Yash886:fixture/multiple-versions-same-pkg

Conversation

@coder-Yash886

Copy link
Copy Markdown
Contributor

Fixture(#11)

Summary

  • Adds minimal npm fixture where lodash is installed at two versions: 3.10.1 (transitive via karma) and 4.17.20 (direct).
  • Both vulnerable versions are reported as separate findings with correct direct/transitive classification.
  • Adds regression test in fixture-scan.test.ts.

Scan output

```
node dist/index.js examples/multiple-versions-same-pkg --verbose
```

Parsed 3 packages. Found 3 packages (11 CVEs). Key findings:

  • lodash@3.10.1 — critical, transitive
  • lodash@4.17.20 — high, direct

Test plan

  • npm run build
  • npm test -- tests/fixture-scan.test.ts
  • node dist/index.js examples/multiple-versions-same-pkg --verbose"

@coder-Yash886

Copy link
Copy Markdown
Contributor Author

@sonukapoor Please review the PR when you have free time

@sonukapoor sonukapoor left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean fixture - both lodash versions correctly reported as separate findings. Tested locally.

@sonukapoor sonukapoor merged commit 056e75e into OWASP:main Jun 13, 2026
6 checks passed
@sonukapoor

Copy link
Copy Markdown
Collaborator

Merged - thank you @coder-Yash886!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants