Skip to content

[Aikido] Fix 4 security issues in json, sinatra - #347

Closed
aikido-autofix[bot] wants to merge 1 commit into
mainfrom
fix/AIK-17948-update-packages-79598819-7yow
Closed

[Aikido] Fix 4 security issues in json, sinatra#347
aikido-autofix[bot] wants to merge 1 commit into
mainfrom
fix/AIK-17948-update-packages-79598819-7yow

Conversation

@aikido-autofix

@aikido-autofix aikido-autofix Bot commented Aug 2, 2026

Copy link
Copy Markdown

Upgrade JSON and Sinatra to fix heap use-after-free, open redirect, and ReDoS vulnerabilities in ETag/header parsing.

✅ 4 CVEs resolved by this upgrade

This PR will resolve the following CVEs:

Issue Severity           Description
AIKIDO-2026-769167
LOW
[json] A heap use-after-free vulnerability in the resumable parser allows attackers to crash the Ruby process by feeding crafted truncated JSON with duplicate keys and calling partial_value, which reads freed memory through stale state pointers.
CVE-2024-21510
LOW
[sinatra] Open Redirect vulnerability via X-Forwarded-Host header allows attackers to redirect users to arbitrary addresses. This can enable Cache Poisoning or Routing-based SSRF attacks when used with reverse proxies or caching servers.
CVE-2025-61921
LOW
[sinatra] Denial of service vulnerability in If-Match and If-None-Match header parsing when using the etag method, where crafted input causes excessive processing time. Applications using the etag method for response generation are vulnerable to DoS attacks.
AIKIDO-2025-10702
LOW
[sinatra] A Regular Expression Denial of Service (ReDoS) vulnerability exists in ETag header parsing via the split(/s*,s*/) operation. An attacker can send a specially crafted ETag header with excessive whitespace and commas to cause catastrophic regex backtracking, consuming CPU resources and causing denial of service.
🔗 Related Tasks

@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@aikido-autofix

aikido-autofix Bot commented Aug 8, 2026

Copy link
Copy Markdown
Author

Closed by Aikido: a new AutoFix has been created → #360

@aikido-autofix aikido-autofix Bot closed this Aug 8, 2026
@aikido-autofix
aikido-autofix Bot deleted the fix/AIK-17948-update-packages-79598819-7yow branch August 8, 2026 23: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.

0 participants