Intel

AIKIDO-2026-998539

actionpack is vulnerable to Mass Assignment

GHSA-wm3x-v3qw-4jh3Published 3 days ago
November 4, 2026

75

CVE Score

High

Mass Assignment

Are you affected? Scan for Free

TL;DR

Parameters#each_key in actionpack returns the internal parameter hash when it is called with a block, instead of the Parameters instance. That hash does not implement permitted?, so Active Model mass assignment accepts it and can set attributes the application did not permit, such as an authorization flag. Rails itself does not pass this return value into mass assignment. The fix yields each key and returns the Parameters instance, which mass assignment rejects unless it is permitted.

How do I fix this?

Upgrade the actionpack library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and the application passes the return value of Parameters#each_key to mass assignment.

Package

Versions

0.9.0 - 8.0.5.1

Fixed in 8.0.5.2

8.1.0 - 8.1.4

Fixed in 8.1.4.1

Background info

actionpack is vulnerable to Mass Assignment in versions 0.9.0 - 8.0.5.1 and 8.1.0 - 8.1.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea