Skip to content

Update dependency rails to v4.0.3 [SECURITY]#2

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/rubygems-rails-vulnerability
Open

Update dependency rails to v4.0.3 [SECURITY]#2
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/rubygems-rails-vulnerability

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 9, 2025

This PR contains the following updates:

Package Change Age Confidence
rails (source, changelog) '4.0.2''4.0.3' age confidence

GitHub Vulnerability Alerts

CVE-2014-0081

There is an XSS vulnerability in the number_to_currency, number_to_percentage and number_to_human helpers in Ruby on Rails. This vulnerability has been assigned the CVE identifier CVE-2014-0081.

Versions Affected: All.
Fixed Versions: 4.1.0.beta2, 4.0.3, 3.2.17.

Impact

These helpers allows users to nicely format a numeric value. Some of the parameters to the helper (format, negative_format and units) are not escaped correctly. Applications which pass user controlled data as one of these parameters are vulnerable to an XSS attack.

All users passing user controlled data to these parameters of the number helpers should either upgrade or use one of the workarounds immediately.

Releases

The 4.1.0.rc1, 4.0.3 and 3.2.17 releases are available at the normal locations.

Workarounds

The workaround for this issue is to escape the value passed to the parameter.
For example, replace code like this:

<%= number_to_currency(1.02, format: params[:format]) %>

With code like this

<%= number_to_currency(1.02, format: h(params[:format])) %>

Patches

To aid users who aren't able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.

  • 4-1-beta-number_helpers_xss.patch - Patch for 4.1-beta series
  • 4-0-number_helpers_xss.patch - Patch for 4.0 series
  • 3-2-number_helpers_xss.patch - Patch for 3.2 series

Please note that only the 4.0.x and 3.2.x series are supported at present. Users of earlier unsupported releases are advised to upgrade as soon as possible as we cannot guarantee the continued availability of security fixes for unsupported releases.

Credits

Thanks to Kevin Reintjes for reporting the issue to us.

--
Aaron Patterson
http://tenderlovemaking.com/


Release Notes

rails/rails (rails)

v4.0.3

Compare Source


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Contributor Author

renovate bot commented Jan 9, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Gemfile.lock
[11:56:41.775] INFO (792): Installing tool ruby@2.1.0...
Download failed: https://github.com/containerbase/ruby-prebuild/releases/download/2.1.0/ruby-2.1.0-jammy-x86_64.tar.xz
Download failed, retrying
Download failed: https://github.com/containerbase/ruby-prebuild/releases/download/2.1.0/ruby-2.1.0-jammy-x86_64.tar.xz
Download failed, retrying
Download failed: https://github.com/containerbase/ruby-prebuild/releases/download/2.1.0/ruby-2.1.0-jammy-x86_64.tar.xz
Download failed: https://github.com/containerbase/ruby-prebuild/releases/download/2.1.0/ruby-2.1.0-jammy-x86_64.tar.xz
[11:56:44.329] INFO (862): Downloading file ...
    url: "https://github.com/containerbase/ruby-prebuild/releases/download/2.1.0/ruby-2.1.0-jammy-x86_64.tar.xz"
    output: "/runner/cache/containerbase/be584a51cc0ceff5dbe6e104dfc48e675c5132213529ec017b2f460e6002d9f3/ruby-2.1.0-jammy-x86_64.tar.xz"
[11:56:44.469] ERROR (862): Request failed with status code 404 (Not Found): GET https://github.com/containerbase/ruby-prebuild/releases/download/2.1.0/ruby-2.1.0-jammy-x86_64.tar.xz
[11:56:44.470] FATAL (862): Download failed in 141ms.
[11:56:44.543] ERROR (792): Command failed with exit code 1: bash /usr/local/containerbase/bin/v2-install-tool.sh install ruby 2.1.0
[11:56:44.544] FATAL (792): Install tool ruby failed in 2.7s.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

Comments