Cross-site Scripting in in JRuby
The regular expression engine in JRuby before 1.4.1, when $KCODE is set to 'u', does not properly handle characters immediately after a UTF-8 character, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted string.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.jruby:jruby-core | < 1.4.1 | 1.4.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2010-1330
- https://bugs.gentoo.org/show_bug.cgi?id=317435
- https://bugzilla.redhat.com/show_bug.cgi?id=750306
- https://exchange.xforce.ibmcloud.com/vulnerabilities/80277
- https://github.com/jruby/jruby
- http://rhn.redhat.com/errata/RHSA-2011-1456.html
- http://secunia.com/advisories/46891
- http://www.jruby.org/2010/04/26/jruby-1-4-1-xss-vulnerability.html
- http://www.osvdb.org/77297
- Weakness (CWE)
CWE-79- Platform
- Java / Kotlin (Maven)
- Package
org.jruby:jruby-core- Disclosed
- 02.05.2022
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-wmq2-jc9m-xp4m - CC BY 4.0
Vulnerability history: org.jruby:jruby-core
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.