Skip to content

fix: bump deps and add dompurify override to resolve Snyk vulnerabilities - #71

Merged
cs-raj merged 1 commit into
mainfrom
fix/snyk-patch-deps-20260809
Aug 9, 2026
Merged

fix: bump deps and add dompurify override to resolve Snyk vulnerabilities#71
cs-raj merged 1 commit into
mainfrom
fix/snyk-patch-deps-20260809

Conversation

@cs-raj

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

Copy link
Copy Markdown
Contributor

Summary

  • Bumped 3 direct dependencies (patch/minor) to resolve DOMPurify XSS vulnerabilities
  • Added dompurify override to pin the transitive dep above the vulnerable range
  • Bumped package version 1.2.1 → 1.2.2

Direct dependency changes

Package Before After
@contentstack/delivery-sdk ^5.5.0 ^5.5.2
isomorphic-dompurify ^3.20.0 ^3.22.0
eslint-config-next ^16.2.6 ^16.2.12

Overrides added

Package Before After
dompurify 3.4.12 3.4.13

Vulnerability counts (before → after)

Tool Severity Before After Fixed
npm audit Moderate 3 0 ✓ 3
Snyk SCA Medium (real vulns) 2 0 ✓ 2
Snyk SCA Medium (license flags) 21 21

Remaining issues

  • 21 Snyk license flags@img/sharp-libvips-* (LGPL-3.0) and lightningcss-linux-x64-gnu (MPL-2.0). These are platform binaries bundled by sharp and lightningcss. No fix available; require a license policy decision.
  • Snyk Code findings (5) — hardcoded secrets (1 high, 2 low) and HTTP createServer (2 medium). Source-level issues; not affected by dependency updates.
  • next, react, react-dom — only available upgrades are canary pre-releases; skipped intentionally.

Build status

npm run build passed — Next.js 16.3.0 Turbopack, TypeScript clean, all pages generated.

…lities

Direct dep upgrades:
- @contentstack/delivery-sdk ^5.5.0 → ^5.5.2
- isomorphic-dompurify ^3.20.0 → ^3.22.0 (fixes DOMPurify XSS)
- eslint-config-next ^16.2.6 → ^16.2.12

Overrides added:
- dompurify 3.4.12 → 3.4.13 (fixes SNYK-JS-DOMPURIFY-18593782 XSS)

Package version: 1.2.1 → 1.2.2
Vuln count: 3 moderate (before) → 0 (after). Build verified passing.
@cs-raj
cs-raj requested a review from a team as a code owner August 9, 2026 09:45
@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 21 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: 21
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@cs-raj
cs-raj merged commit d73b849 into main Aug 9, 2026
6 checks passed
@cs-raj
cs-raj deleted the fix/snyk-patch-deps-20260809 branch August 9, 2026 14:08
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