Search for vulnerabilities
Vulnerability details: VCID-nt8x-sgpg-ffh3
Vulnerability ID VCID-nt8x-sgpg-ffh3
Aliases CVE-2018-8048
GHSA-x7rv-cr6v-4vm4
Summary Revert libxml2 behavior in Nokogiri gem that could cause XSS [MRI] Behavior in libxml2 has been reverted which caused CVE-2018-8048 (loofah gem), CVE-2018-3740 (sanitize gem), and CVE-2018-3741 (rails-html-sanitizer gem). The commit in question is here: https://github.com/GNOME/libxml2/commit/960f0e2 and more information is available about this commit and its impact here: https://github.com/flavorjones/loofah/issues/144 This release simply reverts the libxml2 commit in question to protect users of Nokogiri's vendored libraries from similar vulnerabilities. If you're offended by what happened here, I'd kindly ask that you comment on the upstream bug report here: https://bugzilla.gnome.org/show_bug.cgi?id=769760
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-8048.json
epss 0.00398 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.00398 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.00398 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
epss 0.004 https://api.first.org/data/v1/epss?cve=CVE-2018-8048
cvssv3 5.4 https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
cvssv3.1 6.1 https://github.com/advisories/GHSA-x7rv-cr6v-4vm4
cvssv3.1_qr MODERATE https://github.com/advisories/GHSA-x7rv-cr6v-4vm4
generic_textual MODERATE https://github.com/advisories/GHSA-x7rv-cr6v-4vm4
cvssv3.1 6.1 https://github.com/flavorjones/loofah
generic_textual MODERATE https://github.com/flavorjones/loofah
cvssv3.1 6.1 https://github.com/flavorjones/loofah/commit/f739cf8eac5851f328b8044281d6653f74eff116
generic_textual MODERATE https://github.com/flavorjones/loofah/commit/f739cf8eac5851f328b8044281d6653f74eff116
cvssv3 6.1 https://github.com/flavorjones/loofah/issues/144
cvssv3.1 6.1 https://github.com/flavorjones/loofah/issues/144
generic_textual MODERATE https://github.com/flavorjones/loofah/issues/144
cvssv3.1 6.1 https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2018-8048.yml
generic_textual MODERATE https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2018-8048.yml
cvssv3.1 6.1 https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2018-8048.yml
generic_textual MODERATE https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2018-8048.yml
cvssv3 6.1 https://github.com/sparklemotion/nokogiri/pull/1746
cvssv3.1 6.1 https://github.com/sparklemotion/nokogiri/pull/1746
generic_textual MODERATE https://github.com/sparklemotion/nokogiri/pull/1746
cvssv2 4.3 https://nvd.nist.gov/vuln/detail/CVE-2018-8048
cvssv3 6.1 https://nvd.nist.gov/vuln/detail/CVE-2018-8048
cvssv3.1 6.1 https://nvd.nist.gov/vuln/detail/CVE-2018-8048
generic_textual MODERATE https://nvd.nist.gov/vuln/detail/CVE-2018-8048
cvssv3.1 6.1 https://security.netapp.com/advisory/ntap-20191122-0003
generic_textual MODERATE https://security.netapp.com/advisory/ntap-20191122-0003
cvssv3.1 6.1 https://www.debian.org/security/2018/dsa-4171
generic_textual MODERATE https://www.debian.org/security/2018/dsa-4171
cvssv3.1 6.1 http://www.openwall.com/lists/oss-security/2018/03/19/5
generic_textual MODERATE http://www.openwall.com/lists/oss-security/2018/03/19/5
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-8048.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:R/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.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://github.com/advisories/GHSA-x7rv-cr6v-4vm4
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/flavorjones/loofah
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/flavorjones/loofah/commit/f739cf8eac5851f328b8044281d6653f74eff116
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/flavorjones/loofah/issues/144
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/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2018-8048.yml
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/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2018-8048.yml
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/sparklemotion/nokogiri/pull/1746
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-8048
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.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-2018-8048
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-2018-8048
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://security.netapp.com/advisory/ntap-20191122-0003
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://www.debian.org/security/2018/dsa-4171
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/2018/03/19/5
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.5999
EPSS Score 0.00398
Published At Aug. 1, 2025, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2025-07-31T08:04:55.829047+00:00 Ruby Importer Import https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2018-8048.yml 37.0.0