CVE-2013-0256: Rdoc Cross-Site Scripting Vulnerability
MODERATECVE-2013-0256 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Rdoc libraries in the RubyGems ecosystem. The issue involves rdoc contains xss vulnerability. Remediation is available by upgrading affected packages to version 3.12.1.
CVE-2013-0256 at a Glance
How to Fix CVE-2013-0256
To remediate this vulnerability, upgrade all affected Rdoc dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade rdoc to 3.12.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rdoc
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-0256, inspect your project dependencies for Rdoc:
inspect dependencies for rdoc
Analyze the terminal output to locate any version of Rdoc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.12.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Rdoc, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2013-0256 Affected Rdoc Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rdoc
|
RubyGems |
≥ 2.3.0
< 3.12.1
|
3.12.1
|
References
Frequently Asked Questions
What is CVE-2013-0256?
Which Rdoc versions are affected?
What version fixes CVE-2013-0256?
Is rdoc affected?
What CWE is associated with CVE-2013-0256?
How can I check RubyGems dependencies for CVE-2013-0256?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v2r9-c84j-v7xm",
"modified" : "2023-07-05T20:39:56Z",
"published" : "2017-10-24T18:33:37Z",
"aliases" : [ "CVE-2013-0256" ],
"summary" : "RDoc contains XSS vulnerability",
"details" : "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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rdoc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "3.12.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-0256"
}, {
"type" : "WEB",
"url" : "https://github.com/rdoc/rdoc/commit/ffa87887ee0517793df7541629a470e331f9fe60"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=907820"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-v2r9-c84j-v7xm"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rdoc/rdoc"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rdoc/CVE-2013-0256.yml"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20130402173730/http://blog.segment7.net:80/2013/02/06/rdoc-xss-vulnerability-cve-2013-0256-releases-3-9-5-3-12-1-4-0-0-rc-2"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00015.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2013-02/msg00048.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2013-0686.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2013-0701.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2013-0728.html"
}, {
"type" : "WEB",
"url" : "http://www.ruby-lang.org/en/news/2013/02/06/rdoc-xss-cve-2013-0256"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-1733-1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:56:28Z",
"nvd_published_at" : "2013-03-01T05:40:00Z"
}
}