segiddins / segiddins.me

http://segiddins.me/
0 stars 0 forks source link

[Security] Bump activesupport from 4.1.9 to 4.1.16 #12

Closed dependabot-preview[bot] closed 5 years ago

dependabot-preview[bot] commented 6 years ago

Bumps activesupport from 4.1.9 to 4.1.16. This update includes security fixes.

Vulnerabilities fixed *Sourced from The GitHub Vulnerability Alert Database.* > **CVE-2015-3226** > See https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3226. > > Affected versions: >= 4.1.0, < 4.1.11 *Sourced from The GitHub Vulnerability Alert Database.* > **CVE-2015-3227** > See https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3227. > > Affected versions: < 4.1.11 *Sourced from [The Ruby Advisory Database](https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2015-3226.yml).* > **XSS Vulnerability in ActiveSupport::JSON.encode** > When a `Hash` containing user-controlled data is encode as JSON (either through > `Hash#to_json` or `ActiveSupport::JSON.encode`), Rails does not perform adequate > escaping that matches the guarantee implied by the `escape_html_entities_in_json` > option (which is enabled by default). If this resulting JSON string is subsequently > inserted directly into an HTML page, the page will be vulnerable to XSS attacks. > > For example, the following code snippet is vulnerable to this attack: > > <%= javascript_tag "var data = #{user_supplied_data.to_json};" %> > > Similarly, the following is also vulnerable: > > > > All applications that renders JSON-encoded strings that contains user-controlled > data in their views should either upgrade to one of the FIXED versions or use > the suggested workaround immediately. > > ... (truncated) > > Patched versions: >= 4.2.2; \~> 4.1.11 > Unaffected versions: < 4.1.0 *Sourced from [The Ruby Advisory Database](https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2015-3227.yml).* > **Possible Denial of Service attack in Active Support** > Specially crafted XML documents can cause applications to raise a > `SystemStackError` and potentially cause a denial of service attack. This > only impacts applications using REXML or JDOM as their XML processor. Other > XML processors that Rails supports are not impacted. > > All users running an affected release should either upgrade or use one of the work arounds immediately. > > Workarounds > ----------- > Use an XML parser that is not impacted by this problem, such as Nokogiri or > LibXML. You can change the processor like this: > > ActiveSupport::XmlMini.backend = 'Nokogiri' > > If you cannot change XML parsers, then adjust > `RUBY_THREAD_MACHINE_STACK_SIZE`. > > Patched versions: >= 4.2.2; \~> 4.1.11; \~> 3.2.22 > Unaffected versions: none
Commits - See full diff in [compare view](https://github.com/rails/rails/commits/v4.1.16)


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.
dependabot-preview[bot] commented 5 years ago

Superseded by #22.