Search for vulnerabilities
Vulnerability details: VCID-qny4-w14e-r7g2
Vulnerability ID VCID-qny4-w14e-r7g2
Aliases CVE-2015-7580
GHSA-ghqm-pgxj-37gq
Summary Possible XSS vulnerability in rails-html-sanitizer There is a possible XSS vulnerability in the white list sanitizer in the rails-html-sanitizer gem. This vulnerability has been assigned the CVE identifier CVE-2015-7580. Versions Affected: All. Not affected: None. Fixed Versions: v1.0.3 Impact ------ Carefully crafted strings can cause user input to bypass the sanitization in the white list sanitizer which will can lead to an XSS attack. Vulnerable code will look something like this: <%= sanitize user_input, tags: %w(em) %> All users running an affected release should either upgrade or use one of the workarounds immediately. Releases -------- The FIXED releases are available at the normal locations. Workarounds ----------- Putting the following monkey patch in an initializer can help to mitigate the issue: ``` class Rails::Html::PermitScrubber alias :old_scrub :scrub alias :old_skip_node? :skip_node? def scrub(node) if node.cdata? text = node.document.create_text_node node.text node.replace text return CONTINUE end old_scrub node end def skip_node?(node); node.text?; end end ``` Patches ------- To aid users who aren't able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset. * 1-0-whitelist_sanitizer_xss.patch - Patch for 1.0 series Credits ------- Thanks to Arnaud Germis, Nate Clark, and John Colvin for reporting this issue.
Status Published
Exploitability 0.5
Weighted Severity 6.2
Risk 3.1
Affected and Fixed Packages Package Details
Weaknesses (3)
System Score Found at
cvssv3.1 6.1 http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00014.html
generic_textual MODERATE http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00014.html
cvssv3.1 6.1 http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00024.html
generic_textual MODERATE http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00024.html
cvssv3.1 6.1 http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.html
generic_textual MODERATE http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.html
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
epss 0.00445 https://api.first.org/data/v1/epss?cve=CVE-2015-7580
cvssv3.1_qr MODERATE https://github.com/advisories/GHSA-ghqm-pgxj-37gq
cvssv3.1 6.1 https://github.com/rails/rails-html-sanitizer
generic_textual MODERATE https://github.com/rails/rails-html-sanitizer
cvssv3.1 6.1 https://github.com/rails/rails-html-sanitizer/commit/63903b0eaa6d2a4e1c91bc86008256c4c8335e78
generic_textual MODERATE https://github.com/rails/rails-html-sanitizer/commit/63903b0eaa6d2a4e1c91bc86008256c4c8335e78
cvssv3.1 6.1 https://groups.google.com/forum/message/raw?msg=rubyonrails-security/uh--W4TDwmI/m_CVZtdbFQAJ
generic_textual MODERATE https://groups.google.com/forum/message/raw?msg=rubyonrails-security/uh--W4TDwmI/m_CVZtdbFQAJ
cvssv3 6.1 https://groups.google.com/forum/#!topic/rubyonrails-security/uh--W4TDwmI
cvssv3.1 6.1 https://nvd.nist.gov/vuln/detail/CVE-2015-7580
generic_textual MODERATE https://nvd.nist.gov/vuln/detail/CVE-2015-7580
cvssv3.1 6.1 https://web.archive.org/web/20160128075017/http://www.securitytracker.com/id/1034816
generic_textual MODERATE https://web.archive.org/web/20160128075017/http://www.securitytracker.com/id/1034816
cvssv3.1 6.1 http://www.openwall.com/lists/oss-security/2016/01/25/15
generic_textual MODERATE http://www.openwall.com/lists/oss-security/2016/01/25/15
No exploits are available.
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00014.html
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00024.html
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.html
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://github.com/rails/rails-html-sanitizer
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://github.com/rails/rails-html-sanitizer/commit/63903b0eaa6d2a4e1c91bc86008256c4c8335e78
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://groups.google.com/forum/message/raw?msg=rubyonrails-security/uh--W4TDwmI/m_CVZtdbFQAJ
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://nvd.nist.gov/vuln/detail/CVE-2015-7580
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://web.archive.org/web/20160128075017/http://www.securitytracker.com/id/1034816
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at http://www.openwall.com/lists/oss-security/2016/01/25/15
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Exploit Prediction Scoring System (EPSS)
Percentile 0.62463
EPSS Score 0.00445
Published At Aug. 10, 2025, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2025-07-31T08:04:53.178443+00:00 Ruby Importer Import https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/CVE-2015-7580.yml 37.0.0