VDB
Sign up
MEDIUM6.1

GHSA-r9c2-cr39-c8g6

rails-html-sanitizer Cross-site Scripting vulnerability

Quick fix

GHSA-r9c2-cr39-c8g6 — rails-html-sanitizer: upgrade to the fixed version with the command below.

bundle update rails-html-sanitizer

Details

Cross-site scripting (XSS) vulnerability in the rails-html-sanitizer gem 1.0.2 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via an HTML entity that is mishandled by the `Rails::Html::FullSanitizer` class.

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

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:gem/rails-html-sanitizer"]}'