Vulnerabilities in pkg:gem/actionpack
PACKAGECVE-2024-26143 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Actionpack libraries in the RubyGems ecosystem. The issue involves rails has possible xss vulnerability in action controller. Remediation is available by upgrading affected packages to version 7.0.8.1, 7.1.3.1.
pkg:gem/actionpack
Vulnerability advisories affecting package pkg:gem/actionpack. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9822-6m93-xqf4 | CVE-2024-26143 | MODERATE | Rails has possible XSS Vulnerability in Action Controller |
| GHSA-pgm4-439c-5jp6 | CVE-2026-33167 | LOW | Rails has a possible XSS vulnerability in its Action Pack debug exceptions |
| GHSA-jp5v-5gx4-jmj9 | CVE-2020-8166 | MODERATE | Ability to forge per-form CSRF tokens in Rails |
| GHSA-6x85-j5j2-27jx | CVE-2014-0130 | HIGH | actionpack Path Traversal vulnerability |
| GHSA-xrr4-p6fq-hjg7 | CVE-2016-0752 | HIGH | Directory traversal vulnerability in Action View in Ruby on Rails |
| GHSA-4g8v-vg43-wpgf | CVE-2023-28362 | MODERATE | Actionpack has possible cross-site scripting vulnerability via User Supplied Values to redirect_to |
| GHSA-8qrh-h9m2-5fvf | CVE-2009-3009 | MODERATE | Cross site scripting that affects rails |
| GHSA-8xww-x3g3-6jcv | CVE-2023-22795 | LOW | ReDoS based DoS vulnerability in Action Dispatch |
| GHSA-vfm5-rmrh-j26v | CVE-2024-54133 | LOW | Possible Content Security Policy bypass in Action Dispatch |
| GHSA-p84v-45xj-wwqj | CVE-2023-22792 | LOW | ReDoS based DoS vulnerability in Action Dispatch |
| GHSA-hgpp-pp89-4fgf | CVE-2012-2660 | MODERATE | Action Pack contains database-query restrictions bypass |
| GHSA-92w9-2pqw-rhjj | CVE-2012-3424 | MODERATE | actionpack Improper Authentication vulnerability |
| GHSA-7g65-ghrg-hpf5 | CVE-2012-3465 | MODERATE | actionpack Cross-site Scripting vulnerability |
| GHSA-q34c-48gc-m9g8 | CVE-2012-2694 | MODERATE | actionpack allows remote attackers to bypass database-query restrictions, perform NULL checks via crafted request |
| GHSA-q58j-fmvf-9rq6 | CVE-2011-1497 | MODERATE | Cross site scripting in actionpack Rubygem |
| GHSA-fwhr-88qx-h9g7 | CVE-2024-28103 | MODERATE | Missing security headers in Action Pack on non-HTML responses |
| GHSA-vfg9-r3fq-jvx4 | CVE-2024-47887 | MODERATE | Possible ReDoS vulnerability in HTTP Token authentication in Action Controller |
| GHSA-x76w-6vjr-8xgj | CVE-2024-41128 | MODERATE | Possible ReDoS vulnerability in query parameter filtering in Action Dispatch |
| GHSA-jjhx-jhvp-74wq | CVE-2024-26142 | LOW | Rails has possible ReDoS vulnerability in Accept header parsing in Action Dispatch |
| GHSA-qphc-hf5q-v8fc | CVE-2021-44528 | MODERATE | actionpack Open Redirect in Host Authorization Middleware |
| GHSA-2rqw-v265-jf8c | CVE-2021-22942 | MODERATE | Open Redirect in ActionPack |
| GHSA-8727-m6gj-mc37 | CVE-2020-8164 | HIGH | Possible Strong Parameters Bypass in ActionPack |
| GHSA-2xjj-5x6h-8vmf | CVE-2012-1099 | MODERATE | Cross-site Scripting in actionpack |
| GHSA-q759-hwvc-m3jg | CVE-2013-1855 | MODERATE | actionpack Cross-site Scripting vulnerability |
| GHSA-h56m-vwxc-3qpw | CVE-2014-7829 | MODERATE | Directory traversal vulnerability in actionpack |
| GHSA-29gr-w57f-rpfw | CVE-2014-7818 | MODERATE | actionpack vulnerable to Path Traversal |
| GHSA-wpw7-wxjm-cw8r | CVE-2013-6417 | MODERATE | actionpack allows bypass of database-query restrictions |
| GHSA-699m-mcjm-9cw8 | CVE-2013-4491 | MODERATE | actionpack vulnerable to Cross-site Scripting |
| GHSA-6h5q-96hp-9jgm | CVE-2013-6415 | MODERATE | actionpack vulnerable to Cross-site Scripting |
| GHSA-7wjx-3g7j-8584 | CVE-2021-22904 | HIGH | Possible DoS Vulnerability in Action Controller Token Authentication |
| GHSA-5hq2-xf89-9jxq | CVE-2021-22903 | MODERATE | Possible Open Redirect Vulnerability in Action Pack |
| GHSA-g8ww-46x2-2p65 | CVE-2021-22902 | HIGH | Denial of Service in Action Dispatch |
| GHSA-35mm-cc6r-8fjp | CVE-2020-8264 | MODERATE | Cross-site scripting in actionpack |
| GHSA-ffpv-c4hm-3x6v | CVE-2016-0751 | HIGH | actionpack is vulnerable to denial of service via a crafted HTTP Accept header |
| GHSA-p692-7mm3-3fxg | CVE-2015-7576 | LOW | actionpack is vulnerable to remote bypass authentication |
| GHSA-mpxf-gcw2-pw5q | CVE-2013-6414 | MODERATE | actionpack Improper Input Validation vulnerability |
| GHSA-w37c-q653-qg95 | CVE-2013-6416 | MODERATE | actionpack Cross-site Scripting vulnerability |
| GHSA-fcqf-h4h4-695m | CVE-2011-3186 | MODERATE | actionpack CRLF injection vulnerability |
| GHSA-vx9j-46rh-fqr8 | CVE-2016-2097 | MODERATE | actionview contains Path Traversal vulnerability |
| GHSA-m46p-ggm5-5j83 | CVE-2014-0081 | MODERATE | Rails vulnerable to Cross-site Scripting |
| GHSA-c6qr-h5vq-59jc | CVE-2020-8185 | MODERATE | Untrusted users can run pending migrations in production in Rails |
| GHSA-hjg4-8q5f-x6fm | CVE-2021-22885 | HIGH | Action Pack contains Information Disclosure / Unintended Method Execution vulnerability |
| GHSA-8877-prq4-9xfw | CVE-2021-22881 | MODERATE | Actionpack Open Redirect Vulnerability |
| GHSA-78rc-8c29-p45g | CVE-2016-2098 | HIGH | actionpack allows remote code execution via application's unrestricted use of render method |
| GHSA-7cgp-c3g7-qvrw | CVE-2014-0082 | MODERATE | actionpack Improper Input Validation vulnerability |
| GHSA-9445-4cr6-336r | CVE-2023-22797 | MODERATE | Open Redirect Vulnerability in Action Pack |
| GHSA-xxr8-833v-c7wc | CVE-2011-4319 | MODERATE | Cross-site Scripting vulnerability in i18n translations helper method |
| GHSA-24fg-p96v-hxh8 | CVE-2011-0447 | MODERATE | actionpack Cross-Site Request Forgery vulnerability |
| GHSA-fg9w-g6m4-557j | CVE-2009-3086 | MODERATE | actionpack and activesupport vulnerable to information leaks |
| GHSA-8fqx-7pv4-3jwm | CVE-2008-7248 | MODERATE | Improper Input Validation in actionpack |
| GHSA-75w6-p6mg-vh8j | CVE-2011-0446 | MODERATE | Rails actionpack gem vulnerable to Cross-site Scripting |
| GHSA-v5jg-558j-q67c | CVE-2011-2931 | MODERATE | actionpack Cross-site Scripting vulnerability |
| GHSA-r7q2-5gqg-6c7q | CVE-2011-2929 | MODERATE | actionpack Improper Input Validation vulnerability |
| GHSA-4ww3-3rxj-8v6q | CVE-2011-0449 | HIGH | actionpack allows remote attackers to bypass intended access restrictions |
| GHSA-3vfw-7rcp-3xgm | CVE-2011-3187 | MODERATE | actionpack Improper Input Validation vulnerability |
| GHSA-v9v4-7jp6-8c73 | CVE-2011-2197 | MODERATE | rails Cross-site Scripting vulnerability |
| GHSA-jmgw-6vjg-jjwg | CVE-2013-0156 | HIGH | actionpack Improper Input Validation vulnerability |
| GHSA-9chr-4fjh-5rgw | CVE-2022-3704 | LOW | Cross-site Scripting in actionpack |
| GHSA-j838-vfpq-fmf2 | CVE-2013-1857 | MODERATE | actionpack Cross-site Scripting vulnerability |
| GHSA-98mf-8f57-64qf | CVE-2012-3463 | MODERATE | actionpack Cross-site Scripting vulnerability |
| GHSA-mm33-5vfq-3mm3 | CVE-2022-22577 | MODERATE | Cross-site Scripting Vulnerability in Action Pack |
| GHSA-9h6g-gp95-x3q5 | CVE-2015-7581 | HIGH | actionpack is vulnerable to denial of service because of a wildcard controller route |
| GHSA-wh98-p28r-vrc9 | CVE-2022-23633 | HIGH | Exposure of information in Action Pack |
| GHSA-vwfg-qj3r-6v3r | - | MODERATE | Moderate severity vulnerability that affects actionpack |
| GHSA-m53f-rhq8-q6hf | - | MODERATE | Moderate severity vulnerability that affects actionpack |
| GHSA-544j-77x9-h938 | - | MODERATE | Moderate severity vulnerability that affects actionpack |
| GHSA-hx46-vwmx-wx95 | - | HIGH | High severity vulnerability that affects actionpack |
| GHSA-qf5x-qgx7-437h | - | MODERATE | Moderate severity vulnerability that affects actionpack |
| GHSA-5xmj-wm96-fmw8 | - | MODERATE | Moderate severity vulnerability that affects actionpack |
| GHSA-23v3-qfrj-wmgh | - | MODERATE | Moderate severity vulnerability that affects actionpack |
CVE-2024-26143 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2024-26143
To remediate this vulnerability, upgrade all affected Actionpack dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade actionpack to 7.0.8.1
Upgrade actionpack to 7.1.3.1
Upgrade rails to 7.0.8.1
Upgrade rails to 7.1.3.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for actionpack
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-26143, inspect your project dependencies for Actionpack:
inspect dependencies for actionpack
Analyze the terminal output to locate any version of Actionpack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.8.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Actionpack, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-26143 Affected Actionpack Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
actionpack
|
RubyGems |
≥ 7.0.0
< 7.0.8.1
|
7.0.8.1
|
|
actionpack
|
RubyGems |
≥ 7.1.0
< 7.1.3.1
|
7.1.3.1
|
|
rails
|
RubyGems |
≥ 7.0.0
< 7.0.8.1
|
7.0.8.1
|
|
rails
|
RubyGems |
≥ 7.1.0
< 7.1.3.1
|
7.1.3.1
|
References
Frequently Asked Questions
What is CVE-2024-26143?
Which Actionpack versions are affected?
What version fixes CVE-2024-26143?
Is actionpack affected?
Is rails affected?
What is the CVSS score of CVE-2024-26143?
What CWE is associated with CVE-2024-26143?
How can I check RubyGems dependencies for CVE-2024-26143?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9822-6m93-xqf4",
"modified" : "2026-06-08T23:38:44Z",
"published" : "2024-02-27T21:41:12Z",
"aliases" : [ "CVE-2024-26143" ],
"summary" : "Rails has possible XSS Vulnerability in Action Controller",
"details" : "# Possible XSS Vulnerability in Action Controller\n\nThere is a possible XSS vulnerability when using the translation helpers\n(`translate`, `t`, etc) in Action Controller. This vulnerability has been\nassigned the CVE identifier CVE-2024-26143.\n\nVersions Affected: >= 7.0.0.\nNot affected: < 7.0.0\nFixed Versions: 7.1.3.1, 7.0.8.1\n\nImpact\n------\nApplications using translation methods like `translate`, or `t` on a\ncontroller, with a key ending in \"_html\", a `:default` key which contains\nuntrusted user input, and the resulting string is used in a view, may be\nsusceptible to an XSS vulnerability.\n\nFor example, impacted code will look something like this:\n\n```ruby\nclass ArticlesController < ApplicationController\n def show \n @message = t(\"message_html\", default: untrusted_input)\n # The `show` template displays the contents of `@message`\n end\nend\n```\n\nTo reiterate the pre-conditions, applications must:\n\n* Use a translation function from a controller (i.e. _not_ I18n.t, or `t` from\n a view)\n* Use a key that ends in `_html`\n* Use a default value where the default value is untrusted and unescaped input\n* Send the text to the victim (whether that's part of a template, or a\n `render` call)\n\nAll users running an affected release should either upgrade or use one of the\nworkarounds immediately.\n\nReleases\n--------\nThe fixed releases are available at the normal locations.\n\nWorkarounds\n-----------\nThere are no feasible workarounds for this issue.\n\nPatches\n-------\nTo aid users who aren't able to upgrade immediately we have provided patches for\nthe two supported release series. They are in git-am format and consist of a\nsingle changeset.\n\n* 7-0-translate-xss.patch - Patch for 7.0 series\n* 7-1-translate-xss.patch - Patch for 7.1 series\n\nCredits\n-------\n\nThanks to [ooooooo_q](https://hackerone.com/ooooooo_q) for the patch and fix!",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.0.8.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.1.0"
}, {
"fixed" : "7.1.3.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rails"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.0.8.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rails"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.1.0"
}, {
"fixed" : "7.1.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rails/rails/security/advisories/GHSA-9822-6m93-xqf4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-26143"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/4c83b331092a79d58e4adffe4be5f250fa5782cc"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/5187a9ef51980ad1b8e81945ebe0462d28f84f9e"
}, {
"type" : "WEB",
"url" : "https://discuss.rubyonrails.org/t/possible-xss-vulnerability-in-action-controller/84947"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26143.yml"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20240510-0004"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-27T21:41:12Z",
"nvd_published_at" : "2024-02-27T16:15:46Z"
}
}