VDB
Sign up
MEDIUM

GHSA-6h5q-96hp-9jgm

actionpack vulnerable to Cross-site Scripting

Quick fix

GHSA-6h5q-96hp-9jgm — actionpack: upgrade to the fixed version with the command below.

bundle update actionpack

Details

Cross-site scripting (XSS) vulnerability in the `number_to_currency` helper in `actionpack/lib/action_view/helpers/number_helper.rb` in Ruby on Rails before 3.2.16 and 4.x before 4.0.2 allows remote attackers to inject arbitrary web script or HTML via the unit parameter.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/actionpack
Introduced in: 3.0.0Fixed in: 3.2.16
Fixbundle update actionpack
RubyGems/actionpack
Introduced in: 4.0.0Fixed in: 4.0.2
Fixbundle update actionpack

References