Skip to content

Bump default gem pins to fix known CVEs in bundled jars - #9730

Open
mnpoonia wants to merge 2 commits into
jruby:jruby-9.4from
mnpoonia:bump-default-gems-cve-fixes
Open

mnpoonia wants to merge 2 commits into
jruby:jruby-9.4from
mnpoonia:bump-default-gems-cve-fixes

Conversation

@mnpoonia

Copy link
Copy Markdown

Summary

Several default gems bundled into jruby-complete pin versions with known upstream CVEs in their bundled/transitive artifacts. This bumps them to patched versions.

  • jruby-openssl 0.16.0 -> 0.16.3 — bundled BouncyCastle 1.84 -> 1.86, fixing the "Lazy ASN.1 sequence forcing resets nesting-depth guard" (HIGH) and "Name Constraints bypass via trailing dot in rfc822Name and URI" (CRITICAL) advisories.
  • rdoc 6.4.1.1 -> 6.6.3.1 — fixes sonatype-2022-6090 (XSS in RDoc::Markup::ToHtml link handling, Escape links ruby/rdoc#933). CVE-2024-27281 was already fixed at 6.4.1.1.
  • uri 0.12.4 -> 0.12.5 — fixes CVE-2025-61594.
  • net-imap 0.2.5 -> 0.6.7 — fixes a HIGH-severity STARTTLS-stripping advisory plus several MODERATE command-injection/DoS advisories accumulated since 0.2.5.

rexml (3.4.4) and psych's bundled snakeyaml-engine (5.2.3) are left unchanged — both are already at versions with no known advisories (snakeyaml-engine is unaffected by the legacy org.yaml:snakeyaml CVEs, which apply to a different artifact).

All four bumped gems are pure dependency-version changes; no source/API usage changes were needed in this repo.

Test plan

  • CI build of jruby-complete succeeds with updated gem specs/jars
  • bin/jruby -e 'require "rdoc"; require "uri"; require "net/imap"; require "openssl"' loads cleanly

- jruby-openssl 0.16.0 -> 0.16.3 (bundled BouncyCastle 1.84 -> 1.86,
  fixes GHSA covering "Lazy ASN.1 sequence forcing resets
  nesting-depth guard" and "Name Constraints bypass via trailing
  dot" advisories)
- rdoc 6.4.1.1 -> 6.6.3.1 (fixes sonatype-2022-6090 XSS in
  RDoc::Markup::ToHtml link handling; CVE-2024-27281 was already
  fixed in 6.4.1.1)
- uri 0.12.4 -> 0.12.5 (fixes CVE-2025-61594)
- net-imap 0.2.5 -> 0.6.7 (fixes GHSA-known STARTTLS-stripping
  and command-injection advisories)

rexml and psych (snakeyaml-engine) are left unchanged: rexml 3.4.4
is already the latest release, and snakeyaml-engine has no known
advisories distinct from legacy org.yaml:snakeyaml.
lib/pom.xml is generated from lib/pom.rb via the polyglot-ruby
maven extension (polyglot.dump.pom property); pom.rb independently
hardcodes the same default_gems/bundled_gems version list, so it
needed the same jruby-openssl/rdoc/uri/net-imap bumps to avoid the
prior commit's pom.xml edit being silently regenerated away.
@mnpoonia

mnpoonia commented Sep 25, 2026 •

Copy link
Copy Markdown
Author

@headius Can you help here. I am assuming we will still release 9.4.x versions with security fixes. Correct me if i am wrong.

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.

1 participant