Skip to content

fix(deps): apply npm audit fix to clear the minimatch advisory on the typescript-eslint path (+Claude) - #301

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

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

Conversation

@dhruv-parekh-cs

Copy link
Copy Markdown
Contributor

Summary

Automated snyk-fix sweep, 20-Nov-2026, deps track. Base: development.

This PR commits the lockfile changes from npm audit fix (run without --force). They clear the minimatch advisory GHSA-g3hv-75wg-m249 on the typescript-eslint path. The change touches dev tooling only: the dependency tree that @contentstack/cli-launch ships is unchanged, and snyk test reports the same results before and after.

The three Snyk findings on the shipped tree are not fixed here. All three need a decision from a maintainer (see Needs human review). That includes papaparse: #288 proposed an override for it and was closed without being merged.

Issue Severity Package Before → after Bucket Rationale
GHSA-g3hv-75wg-m249 (npm audit) Moderate typescript-eslint, @typescript-eslint/* (dev, through eslint-config-oclif) → minimatch 8.63.0 → 8.73.0. typescript-estree now resolves its own minimatch@11.0.9, outside the advisory range (>=7.0.0 <11.0.1) Fixed by npm audit fix (lockfile only) Semver-compatible re-resolution inside the existing ranges. package.json is not changed.

Ecosystem-native audit (npm audit fix, no --force)

  • Before: 11 moderate advisories (counted by package). After: 5 moderate.
  • Lockfile-only bumps it applied: typescript-eslint and @typescript-eslint/{eslint-plugin,parser,type-utils,typescript-estree,utils,types,scope-manager,visitor-keys,project-service,tsconfig-utils} 8.63.0 → 8.73.0 (new nested typescript-estree/node_modules/minimatch@11.0.9), minimatch 10.2.5 → 10.2.6, and nyc/node_modules/glob 13.0.6 → 13.0.7.
  • What it declined, because every remaining fix is a breaking change (dev dependencies only; snyk test does not report them):
    • minimatch >=7.0.0 <11.0.1 (GHSA-g3hv-75wg-m249): 10.2.6 under nyc > glob@13 / test-exclude@8, and 9.0.9 under mocha / mocha > glob@10. Every patched release is 11.x, so clearing these means forcing minimatch 11 onto parents that declare ^10 or ^9.
    • glob >=9.0.0 <=14.0.1 (GHSA-3g3m-2fjr-6pw4): 13.0.7 under nyc and 10.5.0 under mocha. npm's only remedy is npm audit fix --force, which installs nyc@17.1.0 (a major-version move).
  • Lockfile note: npm 10 removes the libc field from platform-specific optional packages (@rollup/rollup-linux-* and similar). Those fields were restored as they are on development, so the diff shows only real version changes.

Retired overrides

None. Each existing override was checked against the declared range of every dependent that pulls the package in. Each dependent's range still allows a vulnerable version, so every override is still needed:

  • qs: express@4.22.3 and body-parser@1.20.9 declare ~6.16.0; @contentstack/management@1.31.2 declares ^6.16.0.
  • follow-redirects: axios@1.20.0 declares ^1.16.0.
  • tty-table > csv: tty-table@4.2.4 declares ^5.5.3.
  • tmp: external-editor@2.2.0 declares ^0.0.33.
  • serialize-javascript: mocha@11.8.0 declares ^6.0.2.
  • diff: mocha@11.8.0 and sinon@19.0.5 declare ^7.0.0; ts-node@10.9.2 declares ^4.0.1.
  • @oclif/core > minimatch: @oclif/core@4.14.0 declares ^10.2.5.

Dashboard-only artifacts

None.

Needs human review (not yet resolved)

  • SNYK-JS-PAPAPARSE-22566253 (High): papaparse@5.7.0, pulled in through @contentstack/cli-utilities@2.0.2 (and @contentstack/cli-command@2.0.2 > cli-utilities), which declares ^5.5.4. The fix is 5.7.1. fix(deps): override papaparse to ^5.7.1 and apply npm audit fix (+Claude) #288 proposed a "papaparse": "^5.7.1" override. Review found that npm ignores overrides in an installed package and launch-cli publishes no shrinkwrap, so the override would only clean this repo's own scan. fix(deps): override papaparse to ^5.7.1 and apply npm audit fix (+Claude) #288 was then closed without being merged. That review offered three options: (a) a cli-utilities release that declares papaparse ^5.7.1, (b) generating and publishing a shrinkwrap, or (c) keeping the override as a fix for this repo's scan only. This sweep does not choose between them.
  • SNYK-JS-OPEN-22112123 (High): open@8.4.2 through @contentstack/cli-utilities@2.0.2, which declares ^8.4.2. The fix is open 11.0.0, which is ESM-only and a new major. cli-utilities 2.0.2 is the latest release, so the real fix is a cli-utilities release that moves to open 11. launch-cli's own direct open dependency is already on ^11.
  • SNYK-JS-ADMZIP-21707815 (Medium): adm-zip@0.6.1 (direct). Every version is affected and no fix exists. 0.6.1 is the latest release.

Workflows

No runtime version changed, so nothing under .github/workflows/ needed to be synced.

Code review

1 pass (claude-opus-5-5, effort high); the /code-review gate found no High or Medium findings. Nothing was changed after review.

Validation

  • npm ci with the committed lockfile: OK.
  • npm run build: passed.
  • npm test (mocha unit, jest 142/142, jest integration 33/33): passed.
  • npm run lint: 59 errors, the same 59 as on an untouched origin/development worktree. None come from this change.
  • snyk test --all-projects: 1 project (package-lock.json, matching the single package.json). It reports the same three findings as before the change (listed above), and nothing new.
  • npm audit: 11 → 5 moderate advisories.

Warnings

None from npm install beyond the existing audit summary.

#claude_code#


Generated by Claude Code

… typescript-eslint path

Lockfile-only `npm audit fix` (no --force): typescript-eslint and the
@typescript-eslint/* packages 8.63.0 -> 8.73.0, so typescript-estree now
resolves its own minimatch 11.0.9, outside GHSA-g3hv-75wg-m249
(>=7.0.0 <11.0.1). Also minimatch 10.2.5 -> 10.2.6 and nyc's glob
13.0.6 -> 13.0.7. Dev tooling only; the shipped dependency tree is
unchanged. The libc fields npm 10 drops from platform-specific optional
packages are kept as they are on development.

#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_01NTFwVrqHDq1Tw2gUpTbBch
@dhruv-parekh-cs
dhruv-parekh-cs requested a review from a team as a code owner November 20, 2026 05:14
@snyk-io

snyk-io Bot commented Nov 20, 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 2 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 the whole PR (lockfile-only npm audit fix). No high, medium or low findings; the remaining minimatch/glob audit lines under nyc and mocha are disclosed in the PR body. Not approved: own PR.

— 🤖 launch-pr-review-agent (Claude)


Generated by Claude Code

@dhruv-parekh-cs
dhruv-parekh-cs merged commit d2a4a6f into development Nov 23, 2026
7 checks passed
@dhruv-parekh-cs
dhruv-parekh-cs deleted the CL-snyk-fixes/20-Nov-2026 branch November 23, 2026 07: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.

4 participants