Skip to content

Add deep-chain-no-fix regression fixture (#528)#558

Open
Ayush7614 wants to merge 1 commit into
OWASP:mainfrom
Ayush7614:ayush19
Open

Add deep-chain-no-fix regression fixture (#528)#558
Ayush7614 wants to merge 1 commit into
OWASP:mainfrom
Ayush7614:ayush19

Conversation

@Ayush7614
Copy link
Copy Markdown
Contributor

@Ayush7614 Ayush7614 commented Jun 5, 2026

Summary

  • Adds examples/deep-chain-no-fix/ for Discussion Help wanted: edge case lockfile fixtures for regression testing #528 fixture 1
  • Opposite of examples/wrong-parent/: 3-level chain where the intermediate parent range does not cover the OSV fix
  • Chain: express@4.22.1body-parser@1.20.4qs@6.14.2 (npm overrides isolate the deep path and pin vulnerable versions)
  • body-parser declares qs: ~6.14.0 — does not permit 6.15.2+
  • Documents fixture in examples/readme.md (also adds wrong-parent to the table)

Verified scan output

node dist/index.js examples/deep-chain-no-fix --verbose
  • 69 packages parsed from package-lock.json
  • 1 medium finding: qs@6.14.2 (transitive via express → body-parser → qs)
  • Fix command: npm install express@4.22.2 (parent upgrade)
  • Does not suggest npm update qs

Test plan

Closes Discussion #528 item fixture 1 (regression fixture).

Complements wrong-parent: express → body-parser → qs@6.14.2 where
body-parser@1.20.4 declares ~6.14.0 (does not cover 6.15.2+). CVE Lite
should suggest npm install express@4.22.2, not npm update qs.
@Ayush7614
Copy link
Copy Markdown
Contributor Author

cc: @sonukapoor

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.

1 participant