Skip to content

chore(deps): update dependency nokogiri to v1.19.1 [security]#3361

Open
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
renovate-bot:renovate/data-rubygems-nokogiri-vulnerability
Open

chore(deps): update dependency nokogiri to v1.19.1 [security]#3361
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
renovate-bot:renovate/data-rubygems-nokogiri-vulnerability

Conversation

@renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Feb 20, 2026

This PR contains the following updates:

Package Change Age Confidence
nokogiri 1.18.91.19.1 age confidence

GitHub Vulnerability Alerts

GHSA-wx95-c6cv-8532

Summary

Nokogiri's CRuby extension fails to check the return value from xmlC14NExecute in the method Nokogiri::XML::Document#canonicalize and Nokogiri::XML::Node#canonicalize. When canonicalization fails, an empty string is returned instead of raising an exception. This incorrect return value may allow downstream libraries to accept invalid or incomplete canonicalized XML, which has been demonstrated to enable signature validation bypass in SAML libraries.

JRuby is not affected, as the Java implementation correctly raises RuntimeError on canonicalization failure.

Mitigation

Upgrade to Nokogiri >= 1.19.1.

Severity

The maintainers have assessed this as Medium severity. Nokogiri itself is a parsing library without a clear security boundary related to canonicalization, so the direct impact is that a method returns incorrect data on invalid input. However, this behavior was exploited in practice to bypass SAML signature validation in downstream libraries (see References).

Credit

This vulnerability was responsibly reported by HackerOne researcher d4d.


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@dpebot
Copy link
Collaborator

dpebot commented Feb 20, 2026

/gcbrun

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @renovate-bot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request upgrades the nokogiri gem to mitigate a security vulnerability. The update ensures that the application uses a patched version of the library, preventing potential issues related to XML canonicalization and SAML signature validation bypasses.

Highlights

  • Dependency Update: Updated the nokogiri gem from version 1.18.9 to 1.19.1.
  • Security Fix: This update addresses a medium-severity vulnerability (GHSA-wx95-c6cv-8532) in nokogiri that could lead to SAML signature validation bypass due to incorrect handling of XML canonicalization failures.
Changelog
  • infra/build/developer-tools/build/data/Gemfile.lock
    • Updated nokogiri dependency from 1.18.9 to 1.19.1.
Activity
  • This pull request was automatically generated by Renovate Bot to update the nokogiri dependency.
  • Automerge is currently disabled, requiring manual merging.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the nokogiri dependency to version 1.19.1, addressing a medium-severity security vulnerability (GHSA-wx95-c6cv-8532). The change in Gemfile.lock is correct. However, I've identified a potential issue where the Gemfile is not updated accordingly. My review includes a recommendation to update the Gemfile to enforce the use of the patched version of nokogiri, preventing accidental installations of vulnerable versions in the future.

net-ssh (>= 4.0.0)
netrc (0.11.0)
nokogiri (1.18.9)
nokogiri (1.19.1)
Copy link
Contributor

Choose a reason for hiding this comment

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

high

This update to nokogiri to version 1.19.1 patches a security vulnerability. However, the corresponding Gemfile still specifies ~> 1.18, which allows versions older than 1.19.1 that are vulnerable.

If the Gemfile.lock were to be removed or regenerated, a vulnerable version of nokogiri could be installed.

To prevent this, I recommend updating line 19 of infra/build/developer-tools/build/data/Gemfile to require at least the patched version.

From:

gem 'nokogiri', '~> 1.18'

To:

gem 'nokogiri', '~> 1.19', '>= 1.19.1'

This will ensure that only versions >= 1.19.1 and < 2.0 are installed, which includes the security fix and allows for future minor and patch releases within the 1.x series.

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 485ac92 to 0149dd0 Compare February 24, 2026 01:26
@dpebot
Copy link
Collaborator

dpebot commented Feb 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 0149dd0 to 765782e Compare February 24, 2026 21:08
@dpebot
Copy link
Collaborator

dpebot commented Feb 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 765782e to 0ed8d2d Compare February 24, 2026 21:12
@dpebot
Copy link
Collaborator

dpebot commented Feb 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 0ed8d2d to 2ca08e6 Compare February 24, 2026 21:25
@dpebot
Copy link
Collaborator

dpebot commented Feb 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 2ca08e6 to 1e8f61e Compare February 24, 2026 21:40
@dpebot
Copy link
Collaborator

dpebot commented Feb 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 1e8f61e to 19a6416 Compare February 24, 2026 23:10
@dpebot
Copy link
Collaborator

dpebot commented Feb 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 19a6416 to fcf95ab Compare February 25, 2026 00:29
@dpebot
Copy link
Collaborator

dpebot commented Feb 25, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from fcf95ab to 78f6e19 Compare February 26, 2026 17:50
@dpebot
Copy link
Collaborator

dpebot commented Feb 26, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 78f6e19 to d4f6151 Compare March 2, 2026 17:38
@dpebot
Copy link
Collaborator

dpebot commented Mar 2, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from d4f6151 to a752ebb Compare March 3, 2026 23:18
@dpebot
Copy link
Collaborator

dpebot commented Mar 3, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from a752ebb to 67d48b4 Compare March 3, 2026 23:25
@dpebot
Copy link
Collaborator

dpebot commented Mar 3, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 67d48b4 to a1507ff Compare March 3, 2026 23:35
@dpebot
Copy link
Collaborator

dpebot commented Mar 3, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from a1507ff to c19b0d9 Compare March 3, 2026 23:41
@dpebot
Copy link
Collaborator

dpebot commented Mar 3, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from c19b0d9 to 3c724bc Compare March 3, 2026 23:55
@dpebot
Copy link
Collaborator

dpebot commented Mar 3, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 3c724bc to cb683df Compare March 4, 2026 00:04
@dpebot
Copy link
Collaborator

dpebot commented Mar 4, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from cb683df to 450e400 Compare March 4, 2026 00:24
@dpebot
Copy link
Collaborator

dpebot commented Mar 4, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 450e400 to 339d747 Compare March 6, 2026 22:46
@dpebot
Copy link
Collaborator

dpebot commented Mar 6, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from 339d747 to d89ae57 Compare March 7, 2026 00:21
@dpebot
Copy link
Collaborator

dpebot commented Mar 7, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/data-rubygems-nokogiri-vulnerability branch from d89ae57 to 9dcb832 Compare March 7, 2026 00:43
@dpebot
Copy link
Collaborator

dpebot commented Mar 7, 2026

/gcbrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants