Skip to content

fix: upgrade json to 2.21.2 to remediate CVE-2026-71847 (CVSS 8.7 High) - #88

Merged
OMpawar-21 merged 2 commits into
masterfrom
fix/snyk-json-cve-2026-71847
Aug 13, 2026
Merged

fix: upgrade json to 2.21.2 to remediate CVE-2026-71847 (CVSS 8.7 High)#88
OMpawar-21 merged 2 commits into
masterfrom
fix/snyk-json-cve-2026-71847

Conversation

@OMpawar-21

Copy link
Copy Markdown
Contributor

Summary

  • Upgrades json gem from 2.20.0 to 2.21.2 to fix CVE-2026-71847 (SNYK-RUBY-JSON-18599450)
  • Bumps SDK patch version 0.10.00.10.1
  • Updates CHANGELOG.md with security entry

Vulnerability Detail

Field Detail
CVE CVE-2026-71847
Snyk ID SNYK-RUBY-JSON-18599450
Type Use After Free (CWE-416)
Severity High — CVSS 8.7
Affected json@2.20.0 via JSON::ResumableParser#partial_value
Fix Upgrade to json@2.21.2

Attack vector: Feeding truncated streaming JSON with duplicate object keys causes partial_value to dereference a freed input buffer (state.start/cursor/end), crashing the Ruby process.

Test plan

  • bundle install — 36 gems installed cleanly
  • snyk test — ✅ no vulnerable paths found
  • bundle exec rspec — ✅ 169 examples, 0 failures
  • Line coverage: 95.32%

🤖 Generated with Claude Code

Bumps json gem from 2.20.0 to 2.21.2 to fix a Use After Free vulnerability
(CWE-416) in JSON::ResumableParser#partial_value. Bumps SDK version to 0.10.1.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@OMpawar-21
OMpawar-21 requested a review from a team as a code owner August 13, 2026 07:48
@snyk-io

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

✅ BUILD PASSED - All security checks passed

@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 0 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

✅ BUILD PASSED - All security checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the SDK to remediate a reported json gem security vulnerability by upgrading the locked json dependency and bumping the SDK patch version, with a corresponding changelog entry.

Changes:

  • Bumped SDK version to 0.10.1.
  • Updated Gemfile.lock to use json 2.21.2 (from 2.20.0).
  • Added a security note for 0.10.1 in CHANGELOG.md.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
lib/contentstack/version.rb Patch version bump to 0.10.1.
Gemfile.lock Locks json gem to 2.21.2 (with updated checksum).
CHANGELOG.md Adds 0.10.1 security entry documenting the json upgrade.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@OMpawar-21
OMpawar-21 merged commit 44d5bdc into master Aug 13, 2026
10 checks passed
@OMpawar-21
OMpawar-21 deleted the fix/snyk-json-cve-2026-71847 branch August 13, 2026 08:26
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