CVE-2018-8048
Ruby packages · CVE-2018-8048
In the Loofah gem through 2.2.0 for Ruby, non-whitelisted HTML attributes may occur in sanitized output by republishing a crafted HTML fragment.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.925% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T15:55:09.885Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T16:04:25.255Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:45.823Z | OSV |
| affected | verified | 2026-11-19T12:55:09.099Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:09.099Z | CVE Program |
Affected versions and configuration
n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/flavorjones/loofah/issues/144",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "http://www.openwall.com/lists/oss-security/2018/03/19/5",
"name": "[oss-security] 20180319 [CVE-2018-8048] Loofah XSS Vulnerability",
"tags": [
"mailing-list",
"x_refsource_MLIST",
"x_transferred"
]
},
{
"url": "https://www.debian.org/security/2018/dsa-4171",
"name": "DSA-4171",
"tags": [
"vendor-advisory",
"x_refsource_DEBIAN",
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20191122-0003/",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-05T06:46:13.172Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-x7rv-cr6v-4vm4",
"aliases": [
"CVE-2018-8048"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.2.1"
}
]
}
],
"package": {
"name": "loofah",
"purl": "pkg:gem/loofah",
"ecosystem": "RubyGems"
},
"versions": [
"0.2.0",
"0.2.1",
"0.2.2",
"0.3.0",
"0.3.1",
"0.4.0",
"0.4.1",
"0.4.2",
"0.4.3",
"0.4.4",
"0.4.5",
"0.4.6",
"0.4.7",
"1.0.0",
"1.0.0.beta.1",
"1.1.0",
"1.2.0",
"1.2.1",
"2.0.0",
"2.0.1",
"2.0.2",
"2.0.3",
"2.1.0",
"2.1.0.rc1",
"2.1.0.rc2",
"2.1.1",
"2.2.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/03/GHSA-x7rv-cr6v-4vm4/GHSA-x7rv-cr6v-4vm4.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-8048",
"type": "ADVISORY"
},
{
"url": "https://github.com/flavorjones/loofah/issues/144",
"type": "WEB"
},
{
"url": "https://github.com/sparklemotion/nokogiri/pull/1746",
"type": "WEB"
},
{
"url": "https://github.com/flavorjones/loofah/commit/f739cf8eac5851f328b8044281d6653f74eff116",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-x7rv-cr6v-4vm4",
"type": "ADVISORY"
},
{
"url": "https://github.com/flavorjones/loofah",
"type": "WEB"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2018-8048.yml",
"type": "WEB"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2018-8048.yml",
"type": "WEB"
},
{
"url": "https://security.netapp.com/advisory/ntap-20191122-0003",
"type": "WEB"
},
{
"url": "https://www.debian.org/security/2018/dsa-4171",
"type": "WEB"
},
{
"url": "http://www.openwall.com/lists/oss-security/2018/03/19/5",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-06-16T22:02:35Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-x7rv-cr6v-4vm4",
"aliases": [
"CVE-2018-8048"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.8.3"
}
]
}
],
"package": {
"name": "nokogiri",
"purl": "pkg:gem/nokogiri",
"ecosystem": "RubyGems"
},
"versions": [
"1.0.0",
"1.0.1",
"1.0.2",
"1.0.3",
"1.0.4",
"1.0.5",
"1.0.6",
"1.0.7",
"1.1.0",
"1.1.1",
"1.2.0",
"1.2.1",
"1.2.2",
"1.2.3",
"1.3.0",
"1.3.1",
"1.3.2",
"1.3.3",
"1.4.0",
"1.4.1",
"1.4.2",
"1.4.2.1",
"1.4.3",
"1.4.3.1",
"1.4.4",
"1.4.4.1",
"1.4.4.2",
"1.4.5",
"1.4.6",
"1.4.7",
"1.5.0",
"1.5.0.beta.1",
"1.5.0.beta.2",
"1.5.0.beta.3",
"1.5.0.beta.4",
"1.5.1",
"1.5.1.rc1",
"1.5.10",
"1.5.11",
"1.5.2",
"1.5.3",
"1.5.3.rc2",
"1.5.3.rc3",
"1.5.3.rc4",
"1.5.3.rc5",
"1.5.3.rc6",
"1.5.4",
"1.5.4.rc1",
"1.5.4.rc2",
"1.5.4.rc3",
"1.5.5",
"1.5.5.rc1",
"1.5.5.rc2",
"1.5.5.rc3",
"1.5.6",
"1.5.6.rc1",
"1.5.6.rc2",
"1.5.6.rc3",
"1.5.7",
"1.5.7.rc1",
"1.5.7.rc2",
"1.5.7.rc3",
"1.5.8",
"1.5.9",
"1.6.0",
"1.6.0.rc1",
"1.6.1",
"1.6.2",
"1.6.2.1",
"1.6.2.rc1",
"1.6.2.rc2",
"1.6.2.rc3",
"1.6.3",
"1.6.3.1",
"1.6.3.rc1",
"1.6.3.rc2",
"1.6.3.rc3",
"1.6.4",
"1.6.4.1",
"1.6.5",
"1.6.6.1",
"1.6.6.2",
"1.6.6.3",
"1.6.6.4",
"1.6.7",
"1.6.7.1",
"1.6.7.2",
"1.6.7.rc2",
"1.6.7.rc3",
"1.6.7.rc4",
"1.6.8",
"1.6.8.1",
"1.6.8.rc1",
"1.6.8.rc2",
"1.6.8.rc3",
"1.7.0",
"1.7.0.1",
"1.7.1",
"1.7.2",
"1.8.0",
"1.8.1",
"1.8.2"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/03/GHSA-x7rv-cr6v-4vm4/GHSA-x7rv-cr6v-4vm4.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-8048",
"type": "ADVISORY"
},
{
"url": "https://github.com/flavorjones/loofah/issues/144",
"type": "WEB"
},
{
"url": "https://github.com/sparklemotion/nokogiri/pull/1746",
"type": "WEB"
},
{
"url": "https://github.com/flavorjones/loofah/commit/f739cf8eac5851f328b8044281d6653f74eff116",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-x7rv-cr6v-4vm4",
"type": "ADVISORY"
},
{
"url": "https://github.com/flavorjones/loofah",
"type": "WEB"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2018-8048.yml",
"type": "WEB"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2018-8048.yml",
"type": "WEB"
},
{
"url": "https://security.netapp.com/advisory/ntap-20191122-0003",
"type": "WEB"
},
{
"url": "https://www.debian.org/security/2018/dsa-4171",
"type": "WEB"
},
{
"url": "http://www.openwall.com/lists/oss-security/2018/03/19/5",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-06-16T22:02:35Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | RubyGems / package | loofah | Not a distribution channel | 2.2.1 | Official record |
| ecosystem-boundary | RubyGems / package | nokogiri | Not a distribution channel | 1.8.3 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:44.936ZArchived source JSON
Source publication: 2018-03-21T11:57:11.000Z
Source modification: 2024-02-22T05:21:17.045ZDocument fingerprint
b7b4a134a348f3629d479548f0742a30bfb981bd376f43db4edc65815caf273c - OSVConsulted: 2026-11-19T12:52:45.823ZArchived source JSON
Source publication: 2018-03-21T11:57:11.000Z
Source modification: 2024-02-22T05:21:17.045ZDocument fingerprint
603ec53f7c9f7cc28194b8144ddc2f6e08a0a817795c137b0b4c3ad97161442d - CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - CVE ProgramConsulted: 2026-11-19T12:55:09.099ZArchived source JSON
Source publication: 2018-03-27T17:00:00.000Z
Source modification: 2024-08-05T06:46:13.172ZDocument fingerprint
8d7cb417b6832813bb8a0dd6f2020518b8074e4472bbb2cc1b087fad85295087 - FIRST EPSSConsulted: 2026-11-19T16:04:25.255ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
3667369af43a2e08c587b7e227e51782fd94fb781bcb3d5d75d036fed21180aa
Official status history
- UNKNOWN → PUBLISHED · · evidence