Skip to main content

CVE-2026-126080 — Vulnerability in activesupport — CVE Details

HIGH

Active Support: Possible DoS vulnerability in Active Support safe_constantize

Published November 10, 2026Updated November 10, 2026Source: OSV

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.

Check my Gemfile.lock

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 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:

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.

Bundler
Update activesupport to 8.0.5.2 or later
gem install activesupport -v 8.0.5.2
Bundler
Update activesupport to 8.1.4.1 or later
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).

PackageFixed 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.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

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

CVSS Score
7.5

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.80%
EPSS percentile: 53.4

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

GHSA-8474-xrp6-wh69

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock