HIGH · CVSS 3.1 7.5 EPSS 1.1% · 65th percentile CWE-74

CVE-2026-126080: Active Support: Possible DoS vulnerability in Active Support safe_constantize

Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-8474-xrp6-wh69

Summary

Active Support's safe_constantize function builds an unescaped regular expression from untrusted input when constant lookup raises a LoadError, leading to denial of service via server process crashes. Engineering teams using vulnerable versions of activesupport should upgrade immediately.

Who is affected

Applications that accept Action Cable connections from unauthenticated clients or otherwise pass untrusted input to safe_constantize are affected. Specifically, Action Cable passes the channel value of each subscribe command to safe_constantize before channel lookup, allowing unauthenticated clients to reach this vulnerable code in default configurations. Crafted inputs can trigger regex compilation defects that crash the server process and result in denial of service.

Exploitability

The vulnerability is remotely exploitable over a network without authentication or user interaction, carrying a high base score of 7.5 under CVSS 3.1 with complete availability impact. The EPSS score is 0.008 with a 0.582 percentile, and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
RubyGems activesupport >= 8.1.0.beta1, < 8.1.4.1 8.1.4.1 bundle update activesupport
RubyGems activesupport >= 0, < 8.0.5.2 8.0.5.2 bundle update activesupport

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

What causes the Denial of Service vulnerability?

When constant lookup raises a LoadError, ActiveSupport::Inflector#safe_constantize builds a regular expression from the requested constant name without escaping it, allowing crafted patterns to crash the Ruby regex compiler and server process.

Are unauthenticated clients able to exploit this by default?

Yes, because Action Cable passes the channel value of each subscribe command to safe_constantize before channel lookup, and ApplicationCable::Connection#connect authenticates nobody by default in standard configurations.

What versions of activesupport fix the vulnerability?

Versions 8.1.4.1 and 8.0.5.2 contain fixes for this issue.

Original advisory description
### Impact When constant lookup raises `LoadError`, `ActiveSupport::Inflector#safe_constantize` (and `String#safe_constantize`) builds a regular expression from the requested constant name without escaping it, so a caller that passes untrusted input lets the attacker choose the source of a pattern that the application compiles. Crafted patterns can trigger defects in Ruby's regular expression compiler, possibly leading to a crash of the server process, and repeated requests could keep the application unavailable. Action Cable passes the `channel` value of each `subscribe` command to `safe_constantize` before any channel lookup, so in the default configuration an unauthenticated client of the Action Cable endpoint can reach this code. ### Details The check that decides whether `safe_constantize` returns `nil` or re-raises the `LoadError` now matches the first segment of the constant name against the error message as a literal string, and no longer compiles a regular expression. It returns the same result as before for constant names that contain no regular expression syntax. ### Affected applications An application is affected if it meets all of these requirements: - Mounts Action Cable, which a new Rails application does by default at `/cable` (`config.action_cable.mount_path`), or otherwise passes untrusted input to `safe_constantize`. - Accepts Action Cable connections from untrusted clients. `ApplicationCable::Connection#connect` authenticates nobody unless the application adds a check. ### Workarounds Applications that do not use Action Cable can set `config.action_cable.mount_path = nil` to remove the endpoint. Applications that use Action Cable can call `reject_unauthorized_connection` in `ApplicationCable::Connection#connect` for unauthenticated clients, which limits exposure to authenticated users but does not remove it. ### Releases The fixed releases are available at the normal locations. Patches for those who cannot upgrade at once: - 8.1: https://github.com/rails/rails/commit/95aa9e416016524956d4904fed96eaed079580bb.patch - 8.0: https://github.com/rails/rails/commit/210ac22d446c8e2625b091e79256806b836eee20.patch ### Versions affected - activesupport < 8.0.5.2 - activesupport >= 8.1, < 8.1.4.1 ### Credit This issue was responsibly reported by Felix Tscheulin ([flixt](https://hackerone.com/flixt)) through HackerOne researcher [scheja](https://hackerone.com/scheja), and independently by Bucky Wolfe ([Igneous](https://github.com/Igneous)), who provided a proof of concept that crashes the server. It was also found by the Anthropic OSS Scanner (ANT-2026-ZUN5KU3Q).

References

Source records: GHSA-8474-xrp6-wh69 (OSV.dev) · EPSS by FIRST, 2026-11-27.