ActionText ContentAttachment can Contain Unsanitized HTML
Published 4 Jun 2024 · Updated 10 Sept 2026
Is your project on an affected actiontext?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=7.1.0 <7.1.3.4
- Fixed in
- 7.1.3.4
bundle update --conservative actiontext # Gemfile: '>= 7.1.3.4'- Affected
- >=7.2.0.beta1 <7.2.0.beta2
- Fixed in
- 7.2.0.beta2
bundle update --conservative actiontext # Gemfile: '>= 7.2.0.beta2'Details
Instances of ActionText::Attachable::ContentAttachment included within a rich_text_area tag could potentially contain unsanitized HTML.
This has been assigned the CVE identifier CVE-2024-32464.
Versions Affected: >= 7.1.0 Not affected: < 7.1.0 Fixed Versions: 7.1.3.4
Impact ------ This could lead to a potential cross site scripting issue within the Trix editor.
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.
- action_text_content_attachment_xss_7_1_stable.patch - Patch for 7.1 series
Credits -------
Thank you ooooooo_q for reporting this!
Is GHSA-prjp-h48f-jgf6 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected actiontext, and gives you the command that fixes it.
More advisories for actiontext
- MediumCVE-2024-47888Possible ReDoS vulnerability in plain_text_for_blockquote_node in Action Text · 15 Oct 2024
- MediumCVE-2024-34341Trix Editor Arbitrary Code Execution Vulnerability · 7 May 2024
References
- Linkgithub.com/rails/rails/security/advisories/GHSA-prjp-h48f-jgf6
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-32464
- Linkgithub.com/rails/rails/commit/e215bf3360e6dfe1497c1503a495e384ed6b0995
- Packagegithub.com/rails/rails
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/actiontext/CVE-2024-32464.yml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.