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
- Upgrade RubyGems activesupport to version 8.1.4.1 or version 8.0.5.2.
- If unable to upgrade immediately, set config.action_cable.mount_path = nil if Action Cable is not used, or call reject_unauthorized_connection in ApplicationCable::Connection#connect.
How to check your project
- Check Gemfile.lock or dependencies to determine if activesupport < 8.0.5.2 or (>= 8.1 and < 8.1.4.1) is present.
- Inspect the application configuration for Action Cable mounting and connection authentication logic.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| 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 vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
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
References
- WEB https://github.com/rails/rails/security/advisories/GHSA-8474-xrp6-wh69
- WEB https://github.com/rails/rails/commit/210ac22d446c8e2625b091e79256806b836eee20
- WEB https://github.com/rails/rails/commit/95aa9e416016524956d4904fed96eaed079580bb
- PACKAGE https://github.com/rails/rails
- WEB https://github.com/rails/rails/releases/tag/v8.0.5.2
- WEB https://github.com/rails/rails/releases/tag/v8.1.4.1
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/GHSA-8474-xrp6-wh69.yml
Source records: GHSA-8474-xrp6-wh69 (OSV.dev) · EPSS by FIRST, 2026-11-27.