Vulnerabilities in pkg:maven/org.jruby/jruby-core
PACKAGECVE-2010-1330 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Jruby core libraries in the Maven ecosystem. The issue involves cross-site scripting in in jruby. Remediation is available by upgrading affected packages to version 1.4.1.
pkg:maven/org.jruby/jruby-core
Vulnerability advisories affecting package pkg:maven/org.jruby/jruby-core. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-wmq2-jc9m-xp4m | CVE-2010-1330 | MODERATE | Cross-site Scripting in in JRuby |
CVE-2010-1330 at a Glance
How to Fix CVE-2010-1330
To remediate this vulnerability, upgrade all affected Jruby core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-core</artifactId>
<version>1.4.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.jruby
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2010-1330, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.jruby
Analyze the terminal output to locate any version of Jruby core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.jruby command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Jruby core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2010-1330 Affected Jruby core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.jruby:jruby-core
|
Maven |
< 1.4.1
|
1.4.1
|
References
Frequently Asked Questions
What is CVE-2010-1330?
Which Jruby core versions are affected?
What version fixes CVE-2010-1330?
Is jruby-core affected?
What CWE is associated with CVE-2010-1330?
How can I check Maven dependencies for CVE-2010-1330?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wmq2-jc9m-xp4m",
"modified" : "2022-11-17T20:58:58Z",
"published" : "2022-05-02T06:21:36Z",
"aliases" : [ "CVE-2010-1330" ],
"summary" : "Cross-site Scripting in in JRuby",
"details" : "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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.jruby:jruby-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-1330"
}, {
"type" : "WEB",
"url" : "https://bugs.gentoo.org/show_bug.cgi?id=317435"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=750306"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/80277"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jruby/jruby"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2011-1456.html"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/46891"
}, {
"type" : "WEB",
"url" : "http://www.jruby.org/2010/04/26/jruby-1-4-1-xss-vulnerability.html"
}, {
"type" : "WEB",
"url" : "http://www.osvdb.org/77297"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-01T22:47:20Z",
"nvd_published_at" : "2012-11-23T19:55:00Z"
}
}