Active Support: Denial of Service via safe_constantize (CVE-2026-126080)
An unescaped regular expression in Active Support’s safe_constantize method allows unauthenticated remote attackers to trigger a server process crash via Action Cable, resulting in a Denial of Service.
CVE search metadata
CVE search record: CVE-2026-126080. Severity: high. CVSS: 7.5. KEV: no. Product: Active Support (< 8.0.5.2), Active Support (>= 8.1, < 8.1.4.1). Brief: Active Support: Denial of Service via safe_constantize (CVE-2026-126080). Brief link: https://feed.craftedsignal.io/briefs/2026-11-active-support-dos-ghsa-8474-xrp6-wh69/
Triage facts
Revision 1- Applicability
- Active Support (< 8.0.5.2), Active Support (>= 8.1, < 8.1.4.1)
- Evidence
- Unknown
- Severity
- Low
- Action
- Elevated
- Sources
- 3 public sources
- Freshness
- Revision 1Nov 11, 11:52 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
Active Support's safe_constantize method contains a vulnerability where untrusted input passed into constant lookup can trigger a server-side crash due to unescaped regular expression compilation when a LoadError occurs. In default Rails configurations, the Action Cable endpoint passes unsanitized input to this method, allowing unauthenticated remote attackers to trigger a Denial of Service by causing the application process to crash.
Impact
Crafted inputs to safe_constantize can exploit defects in Ruby's regular expression compiler, causing the server process to crash. Repeated requests lead to sustained application unavailability.
Recommendation
- Upgrade
activesupportto version 8.0.5.2 or 8.1.4.1 to include the patched logic that uses literal string matching. - For applications that do not require Action Cable, set
config.action_cable.mount_path = nilto disable the vulnerable endpoint. - For applications utilizing Action Cable, implement
reject_unauthorized_connectionwithinApplicationCable::Connection#connectto restrict access to authenticated users.
Immediate actions
Upgrade activesupport to 8.0.5.2 or 8.1.4.1
Threat Hunt
Identify high-frequency 500-series errors or sudden process restarts originating from the /cable endpoint
Data: Web server access logs, Application server error logs
Mitigations
Implement reject_unauthorized_connection in ActionCable::Connection#connect
CVE-2026-126080