Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-8048
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 09:57 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-8048
Complete source record
{
"id": "a9f3496367242ffdd329cf8b6ff10038fd0759d19e9a68148fea77755c0118ed",
"url": "https://osv.dev/vulnerability/CVE-2018-8048",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-8048",
"summary": "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.",
"evidence": "osv:CVE-2018-8048",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-8048",
"aliases": [
"CVE-2018-8048",
"GHSA-x7rv-cr6v-4vm4"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/flavorjones/loofah",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "7541374548ee9be53c463a3172cf4d28356ebe1c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:loofah_project:loofah:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.2.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.2.0",
"v2.1.1",
"v2.1.0",
"v2.1.0.rc2",
"v2.1.0.rc1",
"v2.0.3",
"v2.0.2",
"v2.0.1",
"v2.0.0",
"v1.2.1",
"v1.2.0",
"v1.1.0",
"v1.0.0",
"v1.0.0.beta.1",
"v0.4.7",
"v0.4.6",
"v0.4.5",
"v0.4.4",
"v0.4.3",
"v0.4.2",
"v0.4.1",
"v0.4.0",
"v0.3.1",
"v0.3.0",
"v0.2.2",
"v0.2.1",
"v0.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-8048.json"
}
}
],
"modified": "2026-10-20T10:49:30.418835390Z",
"provider": "osv",
"references": [
"https://github.com/flavorjones/loofah/issues/144",
"https://security.netapp.com/advisory/ntap-20191122-0003/",
"https://www.debian.org/security/2018/dsa-4171"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-8048",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 380494,
"published_at": "2018-03-27T17:29:00.757+00:00"
}