CVE-2013-0256 json
RDoc contains XSS vulnerability
published 13y ago modified 4mo ago also GHSA-v2r9-c84j-v7xm , EUVD-2017-0308
- cvss
- 4.3
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems rdoc 3.12.1
- ruby-lang rdoc 3.12
- rubygem-json openshift 1 1.7.3-2.el6op
- rubygem-rdoc openshift 1 3.8-9.el6op
- ruby193-ruby openshift 1 1.9.3.327-28.el6
- ruby193-ruby-irb openshift 1 1.9.3.327-28.el6
- ruby193-rubygems openshift 1 1.8.23-28.el6
- ruby193-ruby-libs openshift 1 1.9.3.327-28.el6
- ruby193-ruby-tcltk openshift 1 1.9.3.327-28.el6
- ruby193-rubygem-json openshift 1 1.5.4-28.el6
red hat advisories RHSA-2013:0701RHSA-2013:0728
- github.com/rdoc/rdoc@ffa8788 commit
Is CVE-2013-0256 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2013-0256 updated cvss 5.4
rubygem-rdoc: Cross-site scripting in the documentation created by Darkfish Rdoc HTML generator / template
-
Red Hat OpenShift Enterprise 1 rubygem-haml Red Hat Enterprise MRG 2 rubygem-haml Red Hat Subscription Asset Manager rubygem-hamlaffected: no fix available
-
Red Hat CloudForms Cloud Engine for RHEL 6 Server rubygem-rdoc 3.8-6.el6cf, rubygem-rack 1.3.0-3.el6cf, rubygem-shoulda 2.11.3-5.el6cf, rubygem-delayed_job 2.1.4-3.el6cf, rubygem-rspec-rails 2.6.1-7.el6cf, rubygem-ruby_parser 2.0.4-6.el6cf, +4 more Red Hat CloudForms System Engine for RHEL 6 Server rubygem-rdoc 3.8-6.el6cf, rubygem-rack 1.3.0-3.el6cf, rubygem-delayed_job 2.1.4-3.el6cf, rubygem-ruby_parser 2.0.4-6.el6cf, rubygem-rails_warden 0.5.5-2.el6cf, ruby-nokogiri 1.5.0-0.9.beta4.el6cf, +2 morefixed: vendor fix RHSA-2013:0548
-
Red Hat OpenShift Enterprise Infrastructure rubygem-rdoc 3.8-9.el6op, rubygem-json 1.7.3-2.el6op, ruby193-ruby 1.9.3.327-28.el6, ruby193-rubygems 1.8.23-28.el6, ruby193-rubygem-rack 1.4.1-5.el6, ruby193-ruby-irb 1.9.3.327-28.el6, +21 more Red Hat OpenShift Enterprise Node rubygem-json 1.7.3-2.el6op, ruby193-ruby 1.9.3.327-28.el6, ruby193-rubygems 1.8.23-28.el6, ruby193-rubygem-rack 1.4.1-5.el6, ruby193-ruby-irb 1.9.3.327-28.el6, ruby193-rubygem-json 1.5.4-28.el6, +16 morefixed: vendor fix RHSA-2013:0701
-
Red Hat Subscription Asset Manager for RHEL 6 Server candlepin 0.7.24-1.el6_3, katello 1.2.1.1-1h.el6_4, rubygem-rdoc 3.8-6.el6cf, rubygem-json 1.7.3-2.el6_3, rubygem-rack 1.3.0-4.el6cf, thumbslug 0.0.28.1-1.el6_4, +14 morefixed: vendor fix RHSA-2013:0686
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.99% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | rdoc | >=2.3.0, <3.12.1 |
3.12.1 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/rdoc/rdoc/commit/ffa87887ee0517793df7541629a470e331f9fe60
web, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2013-0701.html
vendor-advisory, web, third-party-advisory
-
lists.opensuse.org
/opensuse-updates/2013-02/msg00048.html
vendor-advisory, web, mailing-list, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2013-0728.html
vendor-advisory, web, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2013-0686.html
vendor-advisory, web, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2013-0548.html
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/USN-1733-1
vendor-advisory, web, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2013-04/msg00015.html
vendor-advisory, web, mailing-list, third-party-advisory
-
ruby-lang.org
/en/news/2013/02/06/rdoc-xss-cve-2013-0256/
vendor-advisory
-
secunia.com
/advisories/52774
third-party-advisory
-
blog.segment7.net
/2013/02/06/rdoc-xss-vulnerability-cve-2013-0256-releases-3-9-5-3-12-1-4-0-0-rc-2
third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=907820
web, issue-tracking
-
nvd.nist.gov
/vuln/detail/CVE-2013-0256
advisory
-
github.com
/advisories/GHSA-v2r9-c84j-v7xm
advisory
-
github.com
/rdoc/rdoc
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/rdoc/CVE-2013-0256.yml
web
-
web.archive.org
/web/20130402173730/http://blog.segment7.net:80/2013/02/06/rdoc-xss-vulnerability-cve-2013-0256-releases-3-9-5
web
-
ruby-lang.org
/en/news/2013/02/06/rdoc-xss-cve-2013-0256
web
Sources
- CVE List CVE-2013-0256
- GitHub Advisory GHSA-v2r9-c84j-v7xm
- NVD CVE-2013-0256
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.