未验证 提交 bb11a9ac 编写于 作者: K Kasper Timm Hansen 提交者: GitHub

Merge pull request #34388 from gmcgibbon/gem_security_note

Add CVE note to security guide and gemspecs
......@@ -2,6 +2,9 @@
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
# NOTE: There's no need to update dependencies for CVEs in minor
# releases when users can simply run `bundle update vulnerable_gem`.
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "actioncable"
......
......@@ -2,6 +2,9 @@
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
# NOTE: There's no need to update dependencies for CVEs in minor
# releases when users can simply run `bundle update vulnerable_gem`.
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "actionmailer"
......
......@@ -2,6 +2,9 @@
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
# NOTE: There's no need to update dependencies for CVEs in minor
# releases when users can simply run `bundle update vulnerable_gem`.
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "actionpack"
......
......@@ -2,6 +2,9 @@
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
# NOTE: There's no need to update dependencies for CVEs in minor
# releases when users can simply run `bundle update vulnerable_gem`.
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "actionview"
......
......@@ -2,6 +2,9 @@
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
# NOTE: There's no need to update dependencies for CVEs in minor
# releases when users can simply run `bundle update vulnerable_gem`.
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "activejob"
......
......@@ -2,6 +2,9 @@
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
# NOTE: There's no need to update dependencies for CVEs in minor
# releases when users can simply run `bundle update vulnerable_gem`.
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "activemodel"
......
......@@ -2,6 +2,9 @@
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
# NOTE: There's no need to update dependencies for CVEs in minor
# releases when users can simply run `bundle update vulnerable_gem`.
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "activerecord"
......
......@@ -2,6 +2,9 @@
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
# NOTE: There's no need to update dependencies for CVEs in minor
# releases when users can simply run `bundle update vulnerable_gem`.
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "activestorage"
......
......@@ -2,6 +2,9 @@
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
# NOTE: There's no need to update dependencies for CVEs in minor
# releases when users can simply run `bundle update vulnerable_gem`.
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "activesupport"
......
......@@ -1235,6 +1235,11 @@ version:
Rails.application.credentials.some_api_key! # => raises KeyError: :some_api_key is blank
```
Dependency Management and CVEs
------------------------------
Please note that we do not accept patches for CVE version bumps. This is because application owners need to manually update their gems regardless of our efforts. Use `bundle update --conservative gem_name` to safely update vulnerable dependencies.
Additional Resources
--------------------
......
......@@ -2,6 +2,9 @@
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
# NOTE: There's no need to update dependencies for CVEs in minor
# releases when users can simply run `bundle update vulnerable_gem`.
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "railties"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册