CVE-2010-1330 Cross-site Scripting in in JRuby
Remote attackers can execute cross-site scripting attacks in JRuby applications by exploiting a UTF-8 handling flaw in the regex engine when Unicode mode is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2010-1330?
CVE-2010-1330 is a medium-severity cross-site scripting vulnerability in n/a, published on 23 Nov 2012. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2010-1330?
2 open source packages ship an affected version, including org.jruby:jruby-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jruby:jruby-core Maven | All versions | 1.4.1 |
org.jruby:jruby-core Maven | All versions | 1.4.1 |
Products include Jruby Jruby.
How do I fix CVE-2010-1330?
Upgrade org.jruby:jruby-core to 1.4.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2010-1330 being exploited?
There is no known exploitation of CVE-2010-1330 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2010-1330, GHSA-wmq2-jc9m-xp4m.