MediumGHSA-prjp-h48f-jgf6BIT-rails-2024-32464CVE-2024-32464

ActionText ContentAttachment can Contain Unsanitized HTML

Published 4 Jun 2024 · Updated 10 Sept 2026

Is your project on an affected actiontext?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

actiontextRubyGems
Affected
>=7.1.0 <7.1.3.4
Fixed in
7.1.3.4
Update to the fixed version for your release line, for example:bundle update --conservative actiontext # Gemfile: '>= 7.1.3.4'
actiontextRubyGems
Affected
>=7.2.0.beta1 <7.2.0.beta2
Fixed in
7.2.0.beta2
Update to the fixed version for your release line, for example: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
actiontext security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.