Update dependency rexml to v3.3.6 [SECURITY] #254
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.3.4
->3.3.6
GitHub Vulnerability Alerts
CVE-2024-43398
Impact
The REXML gem before 3.3.6 has a DoS vulnerability when it parses an XML that has many deep elements that have same local name attributes.
If you need to parse untrusted XMLs with tree parser API like
REXML::Document.new
, you may be impacted to this vulnerability. If you use other parser APIs such as stream parser API and SAX2 parser API, this vulnerability is not affected.Patches
The REXML gem 3.3.6 or later include the patch to fix the vulnerability.
Workarounds
Don't parse untrusted XMLs with tree parser API.
Release Notes
ruby/rexml (rexml)
v3.3.6
: REXML 3.3.6 - 2024-08-22Compare Source
Improvements
Removed duplicated entity expansions for performance.
Improved namespace conflicted attribute check performance. It was
too slow for deep elements.
Fixes
Fixed a bug that default entity expansions are counted for
security check. Default entity expansions should not be counted
because they don't have a security risk.
Fixed a parser bug that parameter entity references in internal
subsets are expanded. It's not allowed in the XML specification.
Fixed a stream parser bug that user-defined entity references in
text aren't expanded.
Thanks
Viktor Ivarsson
NAITOH Jun
l33thaxor
v3.3.5
: REXML 3.3.5 - 2024-08-12Compare Source
Fixes
REXML::Security.entity_expansion_text_limit
check has wrong text size calculation in SAX and pull parsers.
Thanks
Viktor Ivarsson
NAITOH Jun
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.