Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

activerecord-hackery/ransack
main @ e82f6ba
2
Fixes
0
CVEs
MEDIUM
Peak severity
50.0%
Coverage
Highlights
Denial of Service: 1 prior fix. Scrutinize any change in this area.
lib/ransack/adapters/active_record/base.rb: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Information Disclosure: Allowing all database columns and associations to be searchable by default exposes sensitive data to unauthorized querying. Developers must now explicitly define allowlists using `ransackable_attributes` and `ransackable_associations` to prevent accidental data leaks.
Denial of Service: Dynamic casting of input values using methods like `to_i` without verifying that the object implements the method can trigger unhandled NoMethodError exceptions, potentially crashing worker processes or exhausting resources.