Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump rexml to v3.3.2 #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Bump rexml to v3.3.2 #139

wants to merge 1 commit into from

Conversation

rajraj
Copy link

@rajraj rajraj commented Jul 17, 2024

The REXML gem before 3.3.1 has some DoS vulnerabilities when it parses an XML that has many specific characters such as <, 0 and %>.

The REXML gem 3.3.2 or later include the patches to fix these vulnerabilities.

GHSA-4xqq-m2hx-25v8

@@ -22,7 +22,7 @@ Gem::Specification.new do |gem|
gem.add_dependency 'actionmailer', '>= 6.1'
gem.add_dependency 'letter_opener', '~> 1.9'
gem.add_dependency 'railties', '>= 6.1'
gem.add_dependency 'rexml'
gem.add_dependency 'rexml', '~> 3.3.2'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will lock us to the 3.3.x line, meaning if/when 3.4.x is released, this constraint won't allow folks to upgrade to it. So I think something like this might be better:

Suggested change
gem.add_dependency 'rexml', '~> 3.3.2'
gem.add_dependency 'rexml', '>= 3.3.2'

Though, I also wonder if this is more of a thing that users of this gem should worry about, since they might have specific version needs/constraints for rexml.

🤔💭

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.

2 participants