fix: upgrade json to 2.21.2 to remediate CVE-2026-71847 (CVSS 8.7 High) - #88
Conversation
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>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
There was a problem hiding this comment.
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.lockto usejson 2.21.2(from2.20.0). - Added a security note for
0.10.1inCHANGELOG.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.
Summary
jsongem from2.20.0to2.21.2to fix CVE-2026-71847 (SNYK-RUBY-JSON-18599450)0.10.0→0.10.1CHANGELOG.mdwith security entryVulnerability Detail
json@2.20.0viaJSON::ResumableParser#partial_valuejson@2.21.2Attack vector: Feeding truncated streaming JSON with duplicate object keys causes
partial_valueto dereference a freed input buffer (state.start/cursor/end), crashing the Ruby process.Test plan
bundle install— 36 gems installed cleanlysnyk test— ✅ no vulnerable paths foundbundle exec rspec— ✅ 169 examples, 0 failures🤖 Generated with Claude Code