RubySec

Providing security resources for the Ruby community

GHSA-h5xx-m7vj-5vg2 (activity_notification): SQL Injection via custom_filter in Bulk Notification Endpoints

SQL Injection via custom_filter in Bulk Notification Endpoints

Published: July 11, 2026

SECURITY IDENTIFIERS

GEM

activity_notification

PATCHED VERSIONS

>= 2.7.0

DESCRIPTION

Summary

The notifications_api_controller.rb bulk endpoints (open_all and destroy_all) pass unfiltered request parameters to filtered_by_options, which passes a custom_filter value directly to ActiveRecord's where() as a raw SQL string. An unauthenticated attacker can inject arbitrary SQL conditions, enabling mass data modification, mass data deletion, and information disclosure via boolean-based exfiltration.

RELATED