CVE-2026-126080 — Vulnerability in activesupport — CVE Details
Active Support: Possible DoS vulnerability in Active Support safe_constantize
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.80%). Schedule for your next planned update.
Does your project use an affected activesupport version?
Paste your Gemfile.lock to check it for CVE-2026-126080 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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 tosafe_constantize. - Accepts Action Cable connections from untrusted clients.
ApplicationCable::Connection#connectauthenticates 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) through HackerOne researcher scheja, and independently by Bucky Wolfe (Igneous), who provided a proof of concept that crashes the server. It was also found by the Anthropic OSS Scanner (ANT-2026-ZUN5KU3Q).
Advisory Timeline
- First published November 10, 2026 (16 days ago).
- Last revised November 10, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install activesupport -v 8.0.5.2
gem install activesupport -v 8.1.4.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| activesupport RubyGems · Affected: 1.0.0, 1.0.1, 1.0.2, 1.0.3 (+494 more) | 8.0.5.2 |
| activesupport RubyGems · Affected: 8.1.0, 8.1.0.beta1, 8.1.0.rc1, 8.1.1 (+5 more) | 8.1.4.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-74
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/rails/rails/security/advisories/GHSA-8474-xrp6-wh69WEB
- https://github.com/rails/rails/commit/210ac22d446c8e2625b091e79256806b836eee20WEB
- https://github.com/rails/rails/commit/95aa9e416016524956d4904fed96eaed079580bbWEB
- https://github.com/rails/railsPACKAGE
- https://github.com/rails/rails/releases/tag/v8.0.5.2WEB
- https://github.com/rails/rails/releases/tag/v8.1.4.1WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/GHSA-8474-xrp6-wh69.ymlWEB
Frequently Asked Questions
- What is CVE-2026-126080?
- Active Support: Possible DoS vulnerability in Active Support safe_constantize. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-126080?
- CVE-2026-126080 affects activesupport. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-126080 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 53.4% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2020-8165CRITICAL
ActiveSupport potentially unintended unmarshalling of user-provided objects in MemCacheStore and RedisCacheStore
- CVE-2026-126366HIGH
msgpack-ruby JRuby decoder makes uncapped header-count allocations; a 5-byte message forces multi-GiB OOM
- CVE-2026-126081HIGH
Action Pack: Possible Strong Parameters Bypass in Parameters#each_key
- CVE-2026-33176MEDIUM
Rails Active Support has a possible DoS vulnerability in its number helpers
- CVE-2026-33170MEDIUM
Rails Active Support has a possible XSS vulnerability in SafeBuffer#%
- CVE-2026-33169MEDIUM
Rails Active Support has a possible ReDoS vulnerability in number_to_delimited
- CVE-2023-38037MEDIUM
Active Support Possibly Discloses Locally Encrypted Files
- CVE-2023-28120MEDIUM
Possible XSS Security Vulnerability in SafeBuffer#bytesplice