Description
Action Pack is a framework for handling and responding to web requests. There is a possible Cross Site Scripting (XSS) vulnerability in the `content_security_policy` helper starting in version 5.2.0 of Action Pack and prior to versions 7.0.8.7, 7.1.5.1, 7.2.2.1, and 8.0.0.1. Applications which set Content-Security-Policy (CSP) headers dynamically from untrusted user input may be vulnerable to carefully crafted inputs being able to inject new directives into the CSP. This could lead to a bypass of the CSP and its protection against XSS and other attacks. Versions 7.0.8.7, 7.1.5.1, 7.2.2.1, and 8.0.0.1 contain a fix. As a workaround, applications can avoid setting CSP headers dynamically from untrusted input, or can validate/sanitize that input.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| rails | rails | >= 5.2.0, < 7.0.8.7, >= 7.1.0, < 7.1.5.1, >= 7.2.0, < 7.2.2.1, >= 8.0.0, < 8.0.0.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rails | 2:7.2.2.1+dfsg-1 | — |
| Debian 13 | rails | 2:7.2.2.1+dfsg-1 | — |
| Debian 12 | rails | 2:6.1.7.10+dfsg-1~deb12u1 | DSA-5881-1 |
| Debian 11 | rails | 2:6.0.3.7+dfsg-2+deb11u3 | DLA-4383-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rails | No fix yet | — |
| Ubuntu 26.04 LTS | rails | No fix yet | — |
| Ubuntu 25.10 | rails | No fix yet | — |
| Ubuntu 24.04 LTS | rails | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 20.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 18.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 16.04 LTS | rails | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | rubygem-rails-8.0 +12 | 8.0.1-1.1 | openSUSE-SU-2026:10362-1, openSUSE-SU-2026:10360-1, openSUSE-SU-2026:10345-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionpack | >= 5.2.0, < 7.0.8.7 | 7.0.8.7 | GHSA-vfm5-rmrh-j26v |
| RubyGems | actionpack | >= 7.1.0, < 7.1.5.1 | 7.1.5.1 | GHSA-vfm5-rmrh-j26v |
| RubyGems | actionpack | >= 7.2.0, < 7.2.2.1 | 7.2.2.1 | GHSA-vfm5-rmrh-j26v |
| RubyGems | actionpack | >= 8.0.0, < 8.0.0.1 | 8.0.0.1 | GHSA-vfm5-rmrh-j26v |
Advisories 29
- WID-SEC-2024-3665 Ruby on Rails: Mehrere Schwachstellen ermöglichen Cross-Site Scripting BSI CERT-Bund (WID) · Mar 17, 2026
- openSUSE-SU-2026:10342-1 ruby4.0-rubygem-activemodel-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10335-1 ruby4.0-rubygem-actioncable-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10343-1 ruby4.0-rubygem-activerecord-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10344-1 ruby4.0-rubygem-activestorage-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10336-1 ruby4.0-rubygem-actionmailbox-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10345-1 ruby4.0-rubygem-activesupport-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10337-1 ruby4.0-rubygem-actionmailer-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10338-1 ruby4.0-rubygem-actionpack-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10339-1 ruby4.0-rubygem-actiontext-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10340-1 ruby4.0-rubygem-actionview-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10341-1 ruby4.0-rubygem-activejob-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10360-1 ruby4.0-rubygem-rails-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- openSUSE-SU-2026:10362-1 ruby4.0-rubygem-railties-8.0-8.0.3-1.3 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- DSA-5881-1 rails - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2025:14672-1 ruby3.4-rubygem-actiontext-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14673-1 ruby3.4-rubygem-actionview-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14677-1 ruby3.4-rubygem-activestorage-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14671-1 ruby3.4-rubygem-actionpack-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14679-1 ruby3.4-rubygem-rails-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14678-1 ruby3.4-rubygem-activesupport-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14669-1 ruby3.4-rubygem-actionmailbox-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14680-1 ruby3.4-rubygem-railties-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14676-1 ruby3.4-rubygem-activerecord-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14668-1 ruby3.4-rubygem-actioncable-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14670-1 ruby3.4-rubygem-actionmailer-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14675-1 ruby3.4-rubygem-activemodel-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- DLA-4383-1 rails - security update Debian Security (DSA / DLA) · Nov 25, 2025
- openSUSE-SU-2025:14674-1 ruby3.4-rubygem-activejob-8.0-8.0.1-1.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
References
- https://github.com/rails/rails/security/advisories/GHSA-vfm5-rmrh-j26v
- https://github.com/rails/rails/commit/2e3f41e4538b9ca1044357f6644f037bbb7c6c49
- https://github.com/rails/rails/commit/3da2479cfe1e00177114b17e496213c40d286b3a
- https://github.com/rails/rails/commit/5558e72f22fc69c1c407b31ac5fb3b4ce087b542
- https://github.com/rails/rails/commit/cb16a3bb515b5d769f73926d9757270ace691f1d