Home / Ruby-lang / Rdoc / CVE-2013-0256
CVE-2013-0256: is it exploited, and which versions of Ruby-lang Rdoc are affected and fixed?
CVE-2013-0256 is a cross-site scripting (XSS) vulnerability in Ruby-lang Rdoc. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:38 UTC). Affected: rdoc from 2.3.0 before 3.12.1 (GitHub advisory GHSA-v2r9-c84j-v7xm). Fixed in 3.12.1 (GitHub advisory GHSA-v2r9-c84j-v7xm). Severity: Medium (4.3, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:38 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:48 UTC.
What is CVE-2013-0256?
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.
From the CVE record by redhat, last updated August 6, 2024, 14:18 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| RubyGems | rdoc | >= 2.3.0, < 3.12.1 | 3.12.1 | GHSA-v2r9-c84j-v7xm |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 5, 2023. Summary: RDoc contains XSS vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| ruby-lang | rdoc | from 2.3.0 before 3.12 | application |
| ruby-lang | rdoc | 4.0.0 | application |
| ruby-lang | ruby | 1.9 | application |
| ruby-lang | ruby | 1.9.1 | application |
| ruby-lang | ruby | 1.9.2 | application |
| ruby-lang | ruby | 1.9.3 | application |
| ruby-lang | ruby | 2.0 | application |
| ruby-lang | ruby | 2.0.0 | application |
| canonical | ubuntu linux | 12.04 | operating system |
| canonical | ubuntu linux | 12.10 | operating system |
NVD analysis (status Modified), last modified June 16, 2026, 23:49 UTC.
How severe is CVE-2013-0256?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2013-0256 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 3.10% probability of exploitation activity in the next 30 days, percentile 88.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- RHSA-2013:0701 vendor-advisory, x_refsource_REDHAT
- http://www.ruby-lang.org/en/news/2013/02/06/rdoc-xss-cve-2013-0256/ x_refsource_CONFIRM
- 52774 third-party-advisory, x_refsource_SECUNIA
- openSUSE-SU-2013:0303 vendor-advisory, x_refsource_SUSE
- 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 x_refsource_MISC
- RHSA-2013:0728 vendor-advisory, x_refsource_REDHAT
- RHSA-2013:0686 vendor-advisory, x_refsource_REDHAT
- https://github.com/rdoc/rdoc/commit/ffa87887ee0517793df7541629a470e331f9fe60 x_refsource_CONFIRM
- RHSA-2013:0548 vendor-advisory, x_refsource_REDHAT
- USN-1733-1 vendor-advisory, x_refsource_UBUNTU
- https://bugzilla.redhat.com/show_bug.cgi?id=907820 x_refsource_MISC
- SUSE-SU-2013:0647 vendor-advisory, x_refsource_SUSE
When was it published, and where is the official record?
- Reserved
- December 6, 2012
- Published
- March 1, 2013, 02:00 UTC
- CVE record updated
- August 6, 2024, 14:18 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:49 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:48 UTC; KEV December 3, 2026, 08:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Rdoc?
- Jul 29, 2021CVE-2021-31799 Debian Linux: OS command injection
Questions about CVE-2013-0256
Is CVE-2013-0256 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:38 UTC. FIRST's EPSS gives it a 3.10% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Ruby-lang Rdoc are affected by CVE-2013-0256?
rdoc from 2.3.0 before 3.12.1, per the GitHub advisory GHSA-v2r9-c84j-v7xm. The tables above give every range the sources list.
Which version fixes CVE-2013-0256?
3.12.1, per the GitHub advisory GHSA-v2r9-c84j-v7xm. Check the vendor's advisory before you rely on it.
How severe is CVE-2013-0256?
Medium (4.3, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2013-0256?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.