Skip to content

fix(deps): override papaparse to ^5.7.1 to clear SNYK-JS-PAPAPARSE-22566253 (+Claude) - #305

Merged
dhruv-parekh-cs merged 1 commit into
developmentfrom
CL-snyk-fixes/25-Nov-2026
Nov 25, 2026
Merged

dhruv-parekh-cs merged 1 commit into
developmentfrom
CL-snyk-fixes/25-Nov-2026

Conversation

@dhruv-parekh-cs

Copy link
Copy Markdown
Contributor

snyk-fix (deps) — 25-Nov-2026

Automated dependency sweep of launch-cli against development. One Node.js project (package-lock.json, 494 prod dependencies); no go.mod, no Dockerfile.

Fixes

Issue Severity Package Path Before → after Bucket Rationale
SNYK-JS-PAPAPARSE-22566253 high papaparse @contentstack/cli-utilities@2.0.2 > papaparse (also via @contentstack/cli-command@2.0.2 > cli-utilities) 5.7.0 → 5.7.1 non-fixable (transitive) → overrides cli-utilities@2.0.2 is the latest release and declares papaparse ^5.5.4, which still admits 5.7.0. The override "papaparse": "^5.7.1" floors the fix at the patch release that carries it and stays inside the parent's declared range (same major). npm ls papaparse shows papaparse@5.7.1 overridden.

The lockfile change is limited to the papaparse entry (version, resolved, integrity). It was applied by hand rather than with a full npm 10 rewrite, so the npm 11 per-platform optional-package entries (libc fields) that #270 restored stay untouched. npm ci accepts the lockfile.

Ecosystem-native audit (npm audit)

  • Before: 5 moderate. After npm audit fix (no --force): 5 moderate. No change applied.
  • What is left is dev-only and npm marks it as needing a breaking change: glob GHSA-3g3m-2fjr-6pw4 and minimatch GHSA-g3hv-75wg-m249 under mocha and nyc (via test-exclude). The fix is nyc@17.1.0, a major downgrade, which npm declined. Snyk does not report these because it scans production dependencies.

Overrides retired

None. Each existing override was checked against every parent's declared range (npm view <parent>@<ver> dependencies, semver.intersects against each advisory range):

  • qs ~6.16.2: express/body-parser ~6.16.0 and @contentstack/management ^6.16.0 still admit GHSA-6pq8-jhm2-2vcw (<=6.16.0). Kept.
  • follow-redirects ^1.16.2: axios ^1.16.0 still admits GHSA-mrwp-f3q8-3g9p / q3jh / 8r9p. Kept.
  • tty-table > csv ^6.6.4: removing it and re-scanning brings back SNYK-JS-CSVPARSE-19639017 (csv-parse@4.16.3). Kept.
  • tmp ^0.2.4: external-editor ^0.0.33 admits GHSA-ph9p-34f9-6g65. Kept.
  • serialize-javascript ^7.1.0: mocha ^6.0.2 admits GHSA-5c6j-r48x-rmvq and others. Kept.
  • diff ^8.0.3: mocha/sinon ^7.0.0 and ts-node ^4.0.1 admit GHSA-73rr-hh4g-fpgx. Kept.
  • @oclif/core > minimatch ^11.0.1: @oclif/core@4.14.0 declares ^10.2.5, which admits GHSA-g3hv-75wg-m249. Kept.

Needs human review (not yet resolved)

  • SNYK-JS-OPEN-22112123 (high), open@8.4.2 through @contentstack/cli-utilities@2.0.2 (2 paths). The fix is open@11.0.0, but cli-utilities (latest 2.0.2) declares open ^8.4.2. Forcing 11.x on it would be a breaking override, and no newer cli-utilities exists. This needs an upstream @contentstack/cli-utilities release. The CLI's own direct open is already ^11.0.4.
  • SNYK-JS-ADMZIP-21707815 (medium), direct dependency adm-zip@0.6.1. 0.6.1 is the latest published version and Snyk lists no fixed version, so there is no upgrade path. This needs a decision: accept the risk or ignore it in Snyk, or replace the library.

Code review

The /code-review gate ran 2 passes and passed.

  • Pass 1: one Medium finding, accepted. The commit used the internal Fix | +Claude | ... subject, but launch-cli is public and uses Conventional Commits. The commit was reworded to fix(deps): override papaparse to ^5.7.1 to clear SNYK-JS-PAPAPARSE-22566253 (tree unchanged), and the PR title is fix(deps): ... (+Claude).
  • Pass 2: the /code-review gate found no High or Medium findings.

Validation

  • npm ci: pass.
  • npm run build: pass.
  • npm test: pass (mocha unit, jest unit 142/142, jest integration 33/33).
  • snyk test --all-projects re-scan: 1 project, same as the original scan. SNYK-JS-PAPAPARSE-22566253 is gone; only the two needs-human-review findings above remain.
  • No warnings.

#claude_code#


Generated by Claude Code

…566253

papaparse 5.7.0 reaches the CLI transitively through
@contentstack/cli-utilities@2.0.2 (and cli-command > cli-utilities), whose
declared range ^5.5.4 still admits the vulnerable 5.7.0. No newer
cli-utilities exists, so add an "overrides" entry papaparse ^5.7.1 (inside
the parent's declared range; same major). The lockfile change is limited to
the papaparse entry, so the npm 11 platform-specific optional packages stay
intact.

Validated: npm ci, npm run build, npm test (mocha + jest unit + integration)
all pass; snyk test --all-projects no longer reports the papaparse finding.

#claude_code#
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTFwVve4Q7UWstnqXbyGog
@dhruv-parekh-cs
dhruv-parekh-cs requested a review from a team as a code owner November 25, 2026 04:58
@snyk-io

snyk-io Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 2 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 2
  • Medium without fixes: 1
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@dhruv-parekh-cs dhruv-parekh-cs left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed: whole PR (origin/development...CL-snyk-fixes/25-Nov-2026) (at 46bd867).
1 finding(s) inline.

— 🤖 snyk-fix review (Claude)


Generated by Claude Code

Comment thread package.json Resolved
@dhruv-parekh-cs
dhruv-parekh-cs merged commit 0ae29a6 into development Nov 25, 2026
7 checks passed
@dhruv-parekh-cs
dhruv-parekh-cs deleted the CL-snyk-fixes/25-Nov-2026 branch November 25, 2026 06:33
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.

3 participants