CVE-2013-0256Ruby-lang Rdoc
Medium 4.3 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Rdoc We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 2.0
- 4.3
- EPSS
- 3.0% probability of exploitation in 30 days · percentile 88
- Auth required
- No
- Published
- Mar 1, 2013
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
What happens
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.
What to do
- Apply the vendor's security update for Rdoc.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | rdoc |
≥ 2.3.0 < 3.12.1 |
3.12.1 |
gem "rdoc", ">= 3.12.1" |
Per OSV / GitHub Advisories (GHSA-v2r9-c84j-v7xm). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | rdoc | ≥ 2.3.0 < 3.12 |
| ruby-lang | rdoc | 4.0.0 |
| 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 |
| ruby-lang | ruby | 1.9.3 |
| ruby-lang | ruby | 1.9.3 |
| ruby-lang | ruby | 1.9.3 |
| ruby-lang | ruby | 1.9.3 |
| ruby-lang | ruby | 2.0 |
| ruby-lang | ruby | 2.0.0 |
| ruby-lang | ruby | 2.0.0 |
| ruby-lang | ruby | 2.0.0 |
| canonical | ubuntu_linux | 12.04 |
| canonical | ubuntu_linux | 12.10 |
Official sources
References
Links published by the sources. Open them with care.
- blog.segment7.net Third Party Advisory
- lists.opensuse.org Mailing List Third Party Advisory
- lists.opensuse.org Mailing List Third Party Advisory
- rhn.redhat.com Third Party Advisory
- rhn.redhat.com Third Party Advisory
- rhn.redhat.com Third Party Advisory
- rhn.redhat.com Third Party Advisory
- secunia.com Third Party Advisory
- www.ruby-lang.org Vendor Advisory
- www.ubuntu.com Third Party Advisory
- bugzilla.redhat.com Issue Tracking
- github.com Third Party Advisory