Medium
Security advisory
In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-16468
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:17 UTC · Revision 1
Source evidence
In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
osv:CVE-2018-16468
Complete source record
{
"id": "f533a1a00694e567b53abf837ea3647ecdb013c190176288ff4fb2e0a45234a1",
"url": "https://osv.dev/vulnerability/CVE-2018-16468",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-16468",
"summary": "In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.",
"evidence": "osv:CVE-2018-16468",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-16468",
"aliases": [
"CVE-2018-16468",
"GHSA-g4xq-jx4w-4cjv"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/flavorjones/loofah",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "37af4ee08f9e9531e24287c2783a79d331fc9243"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:loofah_project:loofah:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.2.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.2.2",
"v2.2.1",
"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-16468.json"
}
}
],
"modified": "2026-10-20T10:50:03.643183314Z",
"provider": "osv",
"references": [
"https://github.com/flavorjones/loofah/issues/154",
"https://www.debian.org/security/2019/dsa-4364"
],
"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-16468",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 381206,
"published_at": "2018-10-30T21:29:00.933+00:00"
}