Executable Regular Expression Error Affecting activesupport package, versions <8.0.5.2>=8.1.0.beta1, <8.1.4.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.11% (66th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-ACTIVESUPPORT-22839999
  • published24 Nov 2026
  • disclosed10 Nov 2026
  • creditIgneous

Introduced: 10 Nov 2026

NewCVE-2026-126080  (opens in a new tab)
CWE-624  (opens in a new tab)

How to fix?

Upgrade activesupport to version 8.0.5.2, 8.1.4.1 or higher.

Overview

activesupport is a toolkit of support libraries and Ruby core extensions extracted from the Rails framework.

Affected versions of this package are vulnerable to Executable Regular Expression Error via the safe_constantize method in ActiveSupport::Inflector. An attacker can send a crafted constant name that causes constant lookup to raise LoadError, making the method compile an attacker-controlled regular expression that can trigger Ruby regex-compiler defects and may crash the server. An unauthenticated Action Cable client can reach this code with a subscribe command when the endpoint accepts unauthenticated connections; repeated requests may keep the application unavailable.

Notes

  • The Action Cable path requires the endpoint to be mounted; new Rails applications mount it at /cable by default, while config.action_cable.mount_path = nil removes it. Applications without Action Cable are affected only if they pass untrusted input to safe_constantize another way.

Workarounds

  • If the application does not use Action Cable, set config.action_cable.mount_path = nil to remove the endpoint and block attacks through Action Cable.
  • If the application uses Action Cable, call reject_unauthorized_connection in ApplicationCable::Connection#connect to limit exposure to authenticated clients.

CVSS Base Scores

version 4.0
version 3.1