CVE-2018-16468
MEDIUM 5.4CVSS 3.0Loofah Cross-site Scripting vulnerability
In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
- Published
- 30 Oct 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-g4xq-jx4w-4cjv
- Sources
- NVDJSONOSV GHSA-g4xq-jx4w-4cjvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.4 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.4 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | loofah_project | loofahcpe:2.3:a:loofah_project:loofah:*:*:*:*:*:ruby:*:* |
<= 2.2.2 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | RubyGems | loofah | < 2.2.3 | 2.2.3 |
References
- https://github.com/flavorjones/loofah/issues/154 · Third Party Advisory, WEB
- https://www.debian.org/security/2019/dsa-4364 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-16468 · ADVISORY
- https://github.com/flavorjones/loofah · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 30 Oct 2018)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Nov 2018)