Search for vulnerabilities
Vulnerability details: VCID-hg99-xn8y-r7gv
Vulnerability ID VCID-hg99-xn8y-r7gv
Aliases CVE-2018-3741
GHSA-px3r-jm9g-c8w8
Summary There is a possible XSS vulnerability in rails-html-sanitizer. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah.
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 6.1 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-3741.json
epss 0.00307 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00307 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00307 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
epss 0.00396 https://api.first.org/data/v1/epss?cve=CVE-2018-3741
cvssv3 6.5 https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
cvssv3.1_qr MODERATE https://github.com/advisories/GHSA-px3r-jm9g-c8w8
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/f3ba1a839a35f2ba7f941c15e239a1cb379d56ae
generic_textual MODERATE https://github.com/rails/rails-html-sanitizer/commit/f3ba1a839a35f2ba7f941c15e239a1cb379d56ae
cvssv3 6.1 https://groups.google.com/d/msg/rubyonrails-security/tP7W3kLc5u4/uDy2Br7xBgAJ
cvssv2 4.3 https://nvd.nist.gov/vuln/detail/CVE-2018-3741
cvssv3.1 6.1 https://nvd.nist.gov/vuln/detail/CVE-2018-3741
generic_textual MODERATE https://nvd.nist.gov/vuln/detail/CVE-2018-3741
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 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-3741.json
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:N/S:U/C:L/I:L/A:N Found at https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
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.1/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.1/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/f3ba1a839a35f2ba7f941c15e239a1cb379d56ae
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: AV:N/AC:M/Au:N/C:N/I:P/A:N Found at https://nvd.nist.gov/vuln/detail/CVE-2018-3741
Exploitability (E) Access Vector (AV) Access Complexity (AC) Authentication (Au) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

high

functional

unproven

proof_of_concept

not_defined

local

adjacent_network

network

high

medium

low

multiple

single

none

none

partial

complete

none

partial

complete

none

partial

complete

Vector: CVSS:3.1/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-2018-3741
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.53597
EPSS Score 0.00307
Published At Aug. 1, 2025, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2025-07-31T08:04:53.157619+00:00 Ruby Importer Import https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/CVE-2018-3741.yml 37.0.0