Skip to content

Fix Grype high-severity findings by patching dev dependency vulnerabilities - #306

Closed
aviadhahami with Copilot wants to merge 7 commits into
copilot/fix-github-actions-jobfrom
copilot/fix-grype-vulnerability-scan
Closed

aviadhahami with Copilot wants to merge 7 commits into
copilot/fix-github-actions-jobfrom
copilot/fix-grype-vulnerability-scan

Conversation

Copilot AI commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

The "Grype Vulnerability Scan 🔍" job failed on high-severity findings in package-lock.json. All of the findings are in dev-only transitive dependencies. The job log doesn't list them, so I reproduced them with npm audit.

  • Lockfile refresh
    • npm audit fix applied non-breaking patch and minor bumps in package-lock.json.
    • This clears the high finding in underscore.
    • npm audit findings drop from 20 to 11.
  • serialize-javascript override
    • mocha@10 pulls in serialize-javascript@6, which has a high-severity RCE advisory and a DoS advisory.
    • I added an override in package.json to pin it to ^7.1.2. This avoids a mocha major upgrade, and mocha@10.8.2 is unchanged:
    "overrides": { "serialize-javascript": "^7.1.2" }

Remaining high finding: braces (via mocha → chokidar) has no patched release. The only audit "fix" is a major upgrade to mocha@12, which I skipped to avoid over-upgrading. The Grype job may still fail on this finding. Options:

  • ignore it in a .grype.yaml;
  • upgrade mocha in a separate PR.

Review note: the serialize-javascript override crosses a major version (6 → 7). It's only used inside mocha's test tooling, but please confirm that's acceptable.

Copilot AI and others added 3 commits October 11, 2026 07:58
Co-authored-by: aviadhahami <7353632+aviadhahami@users.noreply.github.com>
Co-authored-by: aviadhahami <7353632+aviadhahami@users.noreply.github.com>
…ulnerability-scan

# Conflicts:
#	package-lock.json

Co-authored-by: aviadhahami <7353632+aviadhahami@users.noreply.github.com>
…into copilot/fix-grype-vulnerability-scan

Co-authored-by: aviadhahami <7353632+aviadhahami@users.noreply.github.com>
@aviadhahami
aviadhahami marked this pull request as ready for review October 11, 2026 08:11
Co-authored-by: aviadhahami <7353632+aviadhahami@users.noreply.github.com>
…ulnerability-scan

Co-authored-by: aviadhahami <7353632+aviadhahami@users.noreply.github.com>
@aviadhahami

Copy link
Copy Markdown
Collaborator

Superseded by #308, which fixes the same failing Grype scan without an overrides block. Pinning serialize-javascript 7.x (engines node >=20) and locking node-releases 2.0.58 (node >=18) would break the Node 16/18 legs of the test matrix. This PR also left package.json at axios ^1.13.6.

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