[GHSA-wmq2-jc9m-xp4m] Cross-site Scripting in in JRuby#8791
Open
yusuke-koyoshi wants to merge 1 commit into
Open
[GHSA-wmq2-jc9m-xp4m] Cross-site Scripting in in JRuby#8791yusuke-koyoshi wants to merge 1 commit into
yusuke-koyoshi wants to merge 1 commit into
Conversation
github-actions
Bot
changed the base branch from
main
to
yusuke-koyoshi/advisory-improvement-8791
July 23, 2026 14:02
Contributor
There was a problem hiding this comment.
Pull request overview
Corrects the Maven packages affected by JRuby’s UTF-8 handling vulnerability.
Changes:
- Replaces the nonexistent vulnerable
jruby-corerange withorg.jruby:jruby. - Adds affected
jcodingsversions below 1.0.3. - Updates the advisory modification timestamp.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Updates
Comments
The current advisory lists only
org.jruby:jruby-core(< 1.4.1) as affected, but this is inaccurate on two points:The
jruby-coreMaven artifact did not exist at the time of this vulnerability. JRuby was published under the coordinatesorg.jruby:jrubyuntil the core was split out around JRuby 1.7 (2012). Noorg.jruby:jruby-coreartifact prior to 1.4.1 has ever been published, so the current affected range cannot match any real artifact in a user's dependency graph. The correct coordinate for pre-1.4.1 JRuby isorg.jruby:jruby(< 1.4.1).The actual vulnerable code lives in
org.jruby.jcodings:jcodings, not in JRuby itself. The upstream JRuby advisory ( https://www.jruby.org/2010/04/26/jruby-1-4-1-xss-vulnerability.html ) states that "the fix was applied to the jcodings library which JRuby uses" and instructs users to replace the bundledjcodings.jarwith jcodings 1.0.3. JRuby 1.4.1 shipped fixed simply by bundling jcodings 1.0.3. As a result, any project that consumesorg.jruby.jcodings:jcodingsat a version < 1.0.3 — directly, or transitively viajonior other libraries — is affected, even when JRuby itself is not on the classpath.Proposed changes:
org.jruby:jruby-core(< 1.4.1) withorg.jruby:jruby(< 1.4.1).org.jruby.jcodings:jcodings(< 1.0.3) as an additional affected Maven package.This will prevent SCA tools relying on GHSA from missing projects that depend on a vulnerable
jcodingswithout going through JRuby.