Skip to content

fix: bump 17 deps and add 2 overrides to resolve Snyk vulnerabilities - #55

Merged
cs-raj merged 4 commits into
mainfrom
fix/snyk-patch-deps-20260809
Oct 29, 2026
Merged

cs-raj merged 4 commits into
mainfrom
fix/snyk-patch-deps-20260809

Conversation

@cs-raj

@cs-raj cs-raj commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Snyk flags one high finding on main: qs 6.16.0 (Uncaught Exception), pulled in by @contentstack/delivery-sdk → @contentstack/core, which pins that exact version. This branch had also fallen behind main, had merge conflicts, and its exact js-yaml / nanoid pins now held those packages below main's versions.

Fix

  • Merged main into this branch: kept main's version (0.1.3), tab formatting and dompurify range; kept this branch's newer dependency ranges (SvelteKit adapter, Svelte, Vite, Tailwind, ESLint, Prettier, the Contentstack SDKs, lightningcss and rollup binaries).
  • Added a qs 6.16.1 override (same major; the only fix while @contentstack/core pins 6.16.0).
  • Removed the stale js-yaml 4.3.1 and nanoid 3.3.18 pins: they forced versions below what @eslint/eslintrc and postcss ask for, and js-yaml 4.3.1 has a high advisory. Kept the cookie 0.7.1 override.
  • Regenerated package-lock.json.

Remaining

  • 2 MPL-2.0 licence findings on lightningcss-linux-*: a licence, not something a version bump changes.
  • @sveltejs/kit / @sveltejs/adapter-node low advisories: fixed only in the next majors (kit 3, adapter-node 6).

Verified: Snyk 1 → 0, npm audit 3 → 2, npm run build passes on Node 22.

🤖 Generated with Claude Code

…bilities

Direct dep upgrades:
- @contentstack/delivery-sdk ^5.2.1 → ^5.5.2
- @contentstack/live-preview-utils ^4.4.4 → ^4.4.5
- @sveltejs/adapter-node ^5.5.4 → ^5.5.7
- @sveltejs/kit ^2.70.1 → ^2.70.2 (latest; ReDoS has no fix yet)
- @tailwindcss/postcss ^4.3.1 → ^4.3.3
- eslint ^9.39.4 → ^9.39.5
- eslint-plugin-svelte ^3.19.0 → ^3.22.0
- globals ^17.6.0 → ^17.9.0
- prettier ^3.8.4 → ^3.9.6
- prettier-plugin-tailwindcss ^0.8.0 → ^0.8.1
- svelte ^5.56.3 → ^5.56.8
- svelte-check ^4.6.0 → ^4.7.5
- tailwindcss ^4.3.1 → ^4.3.3
- vite ^7.3.5 → ^7.3.6
- lightningcss-linux-x64-gnu 1.32.0 → 1.33.0
- lightningcss-linux-x64-musl 1.32.0 → 1.33.0
- @rollup/rollup-linux-x64-gnu ^4.62.0 → ^4.62.4
- @rollup/rollup-linux-x64-musl ^4.62.0 → ^4.62.4

Overrides added:
- cookie → 0.7.1 (fixes out-of-bounds chars vuln)
- dompurify → 3.4.13 (fixes XSS)
- js-yaml → 4.3.1 (fixes CVE-2026-59870 ReDoS)
- nanoid → 3.3.18 (fixes zero-size loop)

Package version: 0.1.1 → 0.1.2
Vuln count: npm 6 → 0, Snyk 3 medium → 2 (1 remaining: @sveltejs/kit ReDoS, no fix yet).
Build requires env vars (pre-existing).
@cs-raj
cs-raj requested a review from a team August 9, 2026 10:14
@snyk-io

snyk-io Bot commented Aug 9, 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

github-actions Bot commented Aug 9, 2026

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 0 25 ✅ Passed
🟡 Medium Severity 0 2 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: 0
  • Medium without fixes: 2
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

cs-raj and others added 2 commits October 26, 2026 21:08
…0260809

# Conflicts:
#	package-lock.json
#	package.json
…ties

Lock file regenerated (fixed 0 on its own).
Direct upgrades: none
Overrides: qs 6.16.1 added; stale js-yaml 4.3.1 and nanoid 3.3.18 pins removed
Vuln count: snyk 1 → 0, npm audit 3 → 2. Build verified passing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cs-raj
cs-raj requested a review from a team as a code owner October 26, 2026 15:57
@cs-raj cs-raj changed the title fix: bump 18 deps and add 4 overrides to resolve Snyk vulnerabilities fix: bump 17 deps and add 2 overrides to resolve Snyk vulnerabilities Oct 26, 2026
@snyk-io

snyk-io Bot commented Oct 26, 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 0 25 ✅ Passed
🟡 Medium Severity 0 2 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: 0
  • Medium without fixes: 2
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

…rabilities

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@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 0 25 ✅ Passed
🟡 Medium Severity 0 2 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: 0
  • Medium without fixes: 2
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@cs-raj
cs-raj merged commit 510639f into main Oct 29, 2026
7 checks passed
@cs-raj
cs-raj deleted the fix/snyk-patch-deps-20260809 branch October 29, 2026 09:23
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