What’s Vulnerable › Vulnerabilities
CVE-2013-0256
- Severity: medium (CVSS 4.3 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2013-03-01 · updated 2026-06-16
- Weakness: CWE-79
Description
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.
Affected products
- Canonical Ubuntu Linux: 12.04, 12.10
- ruby-lang Rdoc: from 2.3.0 before 3.12; 4.0.0-preview2 — fixed in 3.12
- Ruby: 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.3-p0, 1.9.3-p125 (+7)
How to fix
Upgrade to a fixed version: ruby-lang Rdoc 3.12. Check the vendor advisory for mitigations.
References
- http://blog.segment7.net/2013/02/06/rdoc-xss-vulnerability-cve-2013-0256-releases-3-9-5-3-12-1-4-0-0-rc-2
- http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00015.html
- http://lists.opensuse.org/opensuse-updates/2013-02/msg00048.html
- http://rhn.redhat.com/errata/RHSA-2013-0548.html
- http://rhn.redhat.com/errata/RHSA-2013-0686.html
- http://rhn.redhat.com/errata/RHSA-2013-0701.html
- http://rhn.redhat.com/errata/RHSA-2013-0728.html
- http://secunia.com/advisories/52774
- http://www.ruby-lang.org/en/news/2013/02/06/rdoc-xss-cve-2013-0256/
- http://www.ubuntu.com/usn/USN-1733-1
- https://bugzilla.redhat.com/show_bug.cgi?id=907820
- https://github.com/rdoc/rdoc/commit/ffa87887ee0517793df7541629a470e331f9fe60
Get alerted when CVE-2013-0256 or the next vulnerability affects your stack