Repository navigation
security: enforce envelope limits before JSON parsing - #48
Conversation
|
Warning Review limit reached
Next review available in: 12 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
JSON.parse()materializes the complete object graphdocumentJsonBuyer-visible impact
Large versioned envelopes can arrive through object stores, database BLOBs, queues, and network gateways. Previous byte/text ceilings bounded total input and post-parse cloning bounded accepted documents, but a syntactically valid wide or deep payload could still make the native JSON parser allocate a complete over-budget graph before rejection. This slice closes that allocation window.
Security and architecture
The scanner is iterative, transport-neutral, and keeps malformed syntax delegated to the canonical parser when resource ceilings are not exceeded. No database, credential, environment-variable, provider, or naruon-specific dependency is added. CWL and naruon hosts still enforce compressed-body, transport, timeout, concurrency, rate, tenant, authorization, schema-migration, and product-tier limits.
Standards basis
Verification required