Hello community,
here is the log from the commit of package rubygem-actionview-5.2 for
openSUSE:Factory checked in at 2020-10-05 19:29:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-actionview-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-actionview-5.2.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-actionview-5.2"
Mon Oct 5 19:29:16 2020 rev:10 rq:838012 version:5.2.4.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-actionview-5.2/rubygem-actionview-5.2.changes
2020-05-11 13:38:16.732730832 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-actionview-5.2.new.4249/rubygem-actionview-5.2.changes
2020-10-05 19:29:19.196496199 +0200
@@ -1,0 +2,19 @@
+Fri Sep 25 13:20:13 UTC 2020 - Stephan Kulow <[email protected]>
+
+updated to version 5.2.4.4
+ see installed CHANGELOG.md
+
+ ## Rails 5.2.4.4 (September 09, 2020) ##
+
+ * [CVE-2020-15169] Fix potential XSS vulnerability in the `translate`/`t`
helper
+
+ *Jonathan Hefner*
+
+
+ ## Rails 5.2.4.3 (May 18, 2020) ##
+
+ * [CVE-2020-8167] Check that request is same-origin prior to including
CSRF token in XHRs
+
+
+
+-------------------------------------------------------------------
Old:
----
actionview-5.2.4.2.gem
New:
----
actionview-5.2.4.4.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-actionview-5.2.spec ++++++
--- /var/tmp/diff_new_pack.4p8KaM/_old 2020-10-05 19:29:19.828496809 +0200
+++ /var/tmp/diff_new_pack.4p8KaM/_new 2020-10-05 19:29:19.832496813 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-actionview-5.2
-Version: 5.2.4.2
+Version: 5.2.4.4
Release: 0
%define mod_name actionview
%define mod_full_name %{mod_name}-%{version}
++++++ actionview-5.2.4.2.gem -> actionview-5.2.4.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2020-03-19 17:30:20.000000000 +0100
+++ new/CHANGELOG.md 2020-09-09 20:34:59.000000000 +0200
@@ -1,3 +1,15 @@
+## Rails 5.2.4.4 (September 09, 2020) ##
+
+* [CVE-2020-15169] Fix potential XSS vulnerability in the `translate`/`t`
helper
+
+ *Jonathan Hefner*
+
+
+## Rails 5.2.4.3 (May 18, 2020) ##
+
+* [CVE-2020-8167] Check that request is same-origin prior to including CSRF
token in XHRs
+
+
## Rails 5.2.4.1 (December 18, 2019) ##
* No changes.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_view/gem_version.rb
new/lib/action_view/gem_version.rb
--- old/lib/action_view/gem_version.rb 2020-03-19 17:30:20.000000000 +0100
+++ new/lib/action_view/gem_version.rb 2020-09-09 20:34:59.000000000 +0200
@@ -10,7 +10,7 @@
MAJOR = 5
MINOR = 2
TINY = 4
- PRE = "2"
+ PRE = "4"
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_view/helpers/translation_helper.rb
new/lib/action_view/helpers/translation_helper.rb
--- old/lib/action_view/helpers/translation_helper.rb 2020-03-19
17:30:20.000000000 +0100
+++ new/lib/action_view/helpers/translation_helper.rb 2020-09-09
20:34:59.000000000 +0200
@@ -79,14 +79,22 @@
if html_safe_translation_key?(key)
html_safe_options = options.dup
+
options.except(*I18n::RESERVED_KEYS).each do |name, value|
unless name == :count && value.is_a?(Numeric)
html_safe_options[name] = ERB::Util.html_escape(value.to_s)
end
end
+
+ html_safe_options[:default] = MISSING_TRANSLATION unless
html_safe_options[:default].blank?
+
translation = I18n.translate(scope_key_by_partial(key),
html_safe_options.merge(raise: i18n_raise))
- translation.respond_to?(:html_safe) ? translation.html_safe :
translation
+ if translation.equal?(MISSING_TRANSLATION)
+ options[:default].first
+ else
+ translation.respond_to?(:html_safe) ? translation.html_safe :
translation
+ end
else
I18n.translate(scope_key_by_partial(key), options.merge(raise:
i18n_raise))
end
@@ -121,6 +129,9 @@
alias :l :localize
private
+ MISSING_TRANSLATION = Object.new
+ private_constant :MISSING_TRANSLATION
+
def scope_key_by_partial(key)
if key.to_s.first == "."
if @virtual_path
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/assets/compiled/rails-ujs.js
new/lib/assets/compiled/rails-ujs.js
--- old/lib/assets/compiled/rails-ujs.js 2020-03-19 17:30:20.000000000
+0100
+++ new/lib/assets/compiled/rails-ujs.js 2020-09-09 20:34:59.000000000
+0200
@@ -247,8 +247,8 @@
}
if (!options.crossDomain) {
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
+ CSRFProtection(xhr);
}
- CSRFProtection(xhr);
xhr.withCredentials = !!options.withCredentials;
xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-03-19 17:30:20.000000000 +0100
+++ new/metadata 2020-09-09 20:34:59.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: actionview
version: !ruby/object:Gem::Version
- version: 5.2.4.2
+ version: 5.2.4.4
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2020-03-19 00:00:00.000000000 Z
+date: 2020-09-09 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,14 +16,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.4.2
+ version: 5.2.4.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.4.2
+ version: 5.2.4.4
- !ruby/object:Gem::Dependency
name: builder
requirement: !ruby/object:Gem::Requirement
@@ -92,28 +92,28 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.4.2
+ version: 5.2.4.4
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.4.2
+ version: 5.2.4.4
- !ruby/object:Gem::Dependency
name: activemodel
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.4.2
+ version: 5.2.4.4
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.4.2
+ version: 5.2.4.4
description: Simple, battle-tested conventions and helpers for building web
pages.
email: [email protected]
executables: []
@@ -230,8 +230,8 @@
licenses:
- MIT
metadata:
- source_code_uri: https://github.com/rails/rails/tree/v5.2.4.2/actionview
- changelog_uri:
https://github.com/rails/rails/blob/v5.2.4.2/actionview/CHANGELOG.md
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.4.4/actionview
+ changelog_uri:
https://github.com/rails/rails/blob/v5.2.4.4/actionview/CHANGELOG.md
post_install_message:
rdoc_options: []
require_paths:
@@ -248,7 +248,7 @@
version: '0'
requirements:
- none
-rubygems_version: 3.0.3
+rubygems_version: 3.1.2
signing_key:
specification_version: 4
summary: Rendering framework putting the V in MVC (part of Rails).