CVE-2026-77432: activity_notification: SQL Injection via custom_filter in Bulk Notification Endpoints
activitynotification provides integrated user activity notifications for Ruby on Rails. Prior to version 2.7.0, the notificationsapicontroller.rb bulk endpoints (openall and destroyall) pass unfiltered request parameters to filteredbyoptions, which passes a customfilter 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. This issue has been patched in version 2.7.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
activity_notificationto a version that resolves this vulnerability.Fixed in 2.7.0
Event History
Frequently Asked Questions
Which deployments are exposed?
Applications using activity_notification versions earlier than 2.7.0 are affected if their bulk notification endpoints are reachable. The described attack does not require authentication.
What does an attacker need to exploit the issue?
An attacker needs to send a request to the open_all or destroy_all bulk endpoint with a crafted custom_filter parameter. That value reaches ActiveRecord where() as raw SQL.
What could exploitation allow?
The flaw can enable arbitrary SQL condition injection, leading to mass notification data modification or deletion. It can also support information disclosure through boolean-based exfiltration.
How can the issue be remediated?
Upgrade activity_notification to version 2.7.0, which includes the patch.