Skip to content

[Snyk] Security upgrade rexml from 3.4.1 to 3.4.2#299

Merged
Nick2bad4u merged 2 commits intomainfrom
snyk-fix-d944cc4b21793735568da860ee9fc540
Sep 30, 2025
Merged

[Snyk] Security upgrade rexml from 3.4.1 to 3.4.2#299
Nick2bad4u merged 2 commits intomainfrom
snyk-fix-d944cc4b21793735568da860ee9fc540

Conversation

@Nick2bad4u
Copy link
Copy Markdown
Owner

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the rubygems dependencies of this project.

Snyk changed the following file(s):

  • Gemfile
⚠️ Warning
Failed to update the Gemfile.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
SNYK-RUBY-REXML-12878608
  50  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-RUBY-REXML-12878608
Copilot AI review requested due to automatic review settings September 23, 2025 06:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the rexml gem from version 3.4.1 to 3.4.2 to fix a medium-severity security vulnerability related to XML Entity Expansion (CVE SNYK-RUBY-REXML-12878608). The change prevents improper restriction of recursive entity references in DTDs.

  • Updates the rexml gem version constraint to require version 3.4.2 or higher
  • Addresses a security vulnerability with a score of 50/1000 related to XML parsing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Nick2bad4u
Copy link
Copy Markdown
Owner Author

Nick2bad4u commented Sep 23, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

code/snyk check is complete. No issues have been found. (View Details)

@github-actions github-actions Bot added AnyChange Assigned to any repo file change release New Release root Affects Root Directory Structure labels Sep 23, 2025
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

Codex Review: Here are some suggestions.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment thread Gemfile
Comment on lines 115 to +116
gem 'resolv-replace'
gem 'rexml'
gem 'rexml', '>= 3.4.2'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P1] Update Gemfile.lock alongside rexml version bump

The Gemfile now requires gem 'rexml', '>= 3.4.2' but the checked‑in Gemfile.lock still pins rexml (3.4.1). On any CI/deployment that installs gems with bundle install --deployment/--frozen, the version mismatch causes bundler to abort and the security upgrade is not actually applied. Regenerate and commit the lock file with rexml 3.4.2 so the dependency constraint and lock stay in sync.

Useful? React with 👍 / 👎.

@sonarqubecloud
Copy link
Copy Markdown

@Nick2bad4u Nick2bad4u merged commit 46a37aa into main Sep 30, 2025
79 of 80 checks passed
@Nick2bad4u Nick2bad4u deleted the snyk-fix-d944cc4b21793735568da860ee9fc540 branch September 30, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AnyChange Assigned to any repo file change release New Release root Affects Root Directory Structure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants