CVE-2024-28103 — Missing security headers in actionpack — CVE Details
Missing security headers in Action Pack on non-HTML responses
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.12%). Schedule for your next planned update.
Does your project use an affected actionpack version?
Paste your Gemfile.lock to check it for CVE-2024-28103 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
Permissions-Policy is Only Served on HTML Content-Type
The application configurable Permissions-Policy is only served on responses with an HTML related Content-Type.
This has been assigned the CVE identifier CVE-2024-28103.
Versions Affected: >= 6.1.0 Not affected: < 6.1.0 Fixed Versions: 6.1.7.8, 7.0.8.4, and 7.1.3.4
Impact
Responses with a non-HTML Content-Type are not serving the configured Permissions-Policy. There are certain non-HTML Content-Types that would benefit from having the Permissions-Policy enforced.
Releases
The fixed releases are available at the normal locations.
Workarounds
N/A
Patches
To aid users who aren't able to upgrade immediately we have provided patches for the supported release series in accordance with our maintenance policy regarding security issues. They are in git-am format and consist of a single changeset.
- 6-1-include-permissions-policy-header-on-non-html.patch - Patch for 6.1 series
- 7-0-include-permissions-policy-header-on-non-html.patch - Patch for 7.0 series
- 7-1-include-permissions-policy-header-on-non-html.patch - Patch for 7.1 series
Credits
Thank you shinkbr for reporting this!
Advisory Timeline
- First published June 4, 2024 (905 days ago).
- Last revised September 10, 2026 — 827 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install actionpack -v 7.1.3.4
gem install actionpack -v 7.0.8.4
gem install actionpack -v 7.2.0.beta2
gem install actionpack -v 6.1.7.8
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| actionpack RubyGems · Affected: 7.1.0, 7.1.1, 7.1.2, 7.1.3 (+3 more) | 7.1.3.4 |
| actionpack RubyGems · Affected: 7.0.0, 7.0.1, 7.0.2, 7.0.2.1 (+19 more) | 7.0.8.4 |
| actionpack RubyGems · Affected: 7.2.0.beta1 | 7.2.0.beta2 |
| actionpack RubyGems · Affected: 6.1.0, 6.1.1, 6.1.2, 6.1.2.1 (+23 more) | 6.1.7.8 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-20Improper Input ValidationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
References
- https://github.com/rails/rails/security/advisories/GHSA-fwhr-88qx-h9g7WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-28103ADVISORY
- https://github.com/rails/rails/commit/35858f1d9d57f6c4050a8d9ab754bd5d088b4523WEB
- https://github.com/rails/railsPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-28103.ymlWEB
- https://security.netapp.com/advisory/ntap-20241206-0002WEB
Frequently Asked Questions
- What is CVE-2024-28103?
- Missing security headers in Action Pack on non-HTML responses. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.4/10).
- How do I check if my project is affected by CVE-2024-28103?
- CVE-2024-28103 affects actionpack. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-28103 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 65.9% 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-2016-0751HIGH
actionpack is vulnerable to denial of service via a crafted HTTP Accept header
- CVE-2021-22902HIGH
Denial of Service in Action Dispatch
- CVE-2021-22885HIGH
Action Pack contains Information Disclosure / Unintended Method Execution vulnerability
- CVE-2020-8185MEDIUM
Untrusted users can run pending migrations in production in Rails
- CVE-2022-22577MEDIUM
Cross-site Scripting Vulnerability in Action Pack
- CVE-2011-1497MEDIUM
Cross site scripting in actionpack Rubygem
- CVE-2021-44528MEDIUM
actionpack Open Redirect in Host Authorization Middleware
- CVE-2026-33167LOW
Rails has a possible XSS vulnerability in its Action Pack debug exceptions