VDB
Sign up
MEDIUM6.1

GHSA-ghqm-pgxj-37gq

rails-html-sanitizer Cross-site Scripting vulnerability

Quick fix

GHSA-ghqm-pgxj-37gq — rails-html-sanitizer: upgrade to the fixed version with the command below.

bundle update rails-html-sanitizer

Details

Cross-site scripting (XSS) vulnerability in `lib/rails/html/scrubbers.rb` in the rails-html-sanitizer gem before 1.0.3 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via a crafted CDATA node.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/rails-html-sanitizer
Introduced in: 0Fixed in: 1.0.3
Fixbundle update rails-html-sanitizer

References