CVE-2013-0256: XSS

Published Feb 5, 2013
·
Updated

A cross-site scripting (XSS) flaw was found in the way Darkfish Rdoc HTML generator / template of RDoc, HTML and command-line documentation producing tool for Ruby, performed sanitization of certain values when creating Rdoc documentation. When Ruby on Rails application exposed its documentation via network, a remote attacker could provide a specially-crafted URL that, when opened would lead to arbitrary web script or HTML code execution in the context of (particular Ruby on Rails application) user's session.

This issue affects RDoc versions 2.3.0 to 3.12.

Other sources

darkfish.js in RDoc 2.3.0 through 3.12 and 4.x before 4.0.0.preview2.1, as used in Ruby, does not properly generate documents, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted URL.

MITRE

Affected Software

20 affected componentsFixes available
redhat/RDoc<3.9.5
3.9.5
redhat/RDoc<3.12.1
3.12.1
redhat/RDoc<4.0.0.
4.0.0.
ruby-lang Rdoc Ruby>=2.3.0<3.12
ruby-lang Rdoc Ruby=4.0.0-preview2
ruby-lang Ruby=1.9
ruby-lang Ruby=1.9.1
ruby-lang Ruby=1.9.2
ruby-lang Ruby=1.9.3
ruby-lang Ruby=1.9.3-p0
ruby-lang Ruby=1.9.3-p125
ruby-lang Ruby=1.9.3-p194
ruby-lang Ruby=1.9.3-p286
ruby-lang Ruby=1.9.3-p383
ruby-lang Ruby=2.0
ruby-lang Ruby=2.0.0
ruby-lang Ruby=2.0.0-rc1
ruby-lang Ruby=2.0.0-rc2
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=12.10

Event History

Feb 5, 2013
Data Sourced
via Red Hat·10:56 AM
DescriptionSeverityAffected Software
Mar 1, 2013
CVE Published
via MITRE·02:00 AM
Data Sourced
via MITRE·02:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2013-0256?

CVE-2013-0256 has been assigned a medium severity level due to potential cross-site scripting vulnerabilities.

2

How do I fix CVE-2013-0256?

To fix CVE-2013-0256, update RDoc to version 3.9.6 or higher, or any version above 4.0.0.

3

What software is affected by CVE-2013-0256?

CVE-2013-0256 affects RDoc versions up to 3.9.5, 3.12.1, and 4.0.0-preview2, as well as several Ruby versions.

4

How does CVE-2013-0256 exploit work?

CVE-2013-0256 exploits a cross-site scripting flaw in the sanitization process during RDoc documentation generation.

5

Can CVE-2013-0256 affect my Ruby on Rails application?

Yes, if your Ruby on Rails application exposes its RDoc documentation without proper sanitization, it can be vulnerable to CVE-2013-0256.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203