SecurityContext

CVE-2018-16468: Loofah Ruby Gem - Stored XSS

  • Cve: CVE-2018-16468
  • Name: Loofah Ruby Gem - Stored XSS
  • Description: In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
  • Impact: Attackers can execute arbitrary JavaScript in the context of the victim's browser, leading to potential session hijacking or data theft.
  • Remediation: Update to the latest version of the Loofah gem where this issue is fixed.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to load malicious SVG content
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00916
  • Epss percentile: 0.6107
  • Assignee: [email protected]
  • Published at: 2018-10-30T21:29:00Z
  • Age in days: 2947
  • Modified at: 2026-06-17T01:44:20Z
  • References total: 2
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-16468
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Hackerone

  • Reports: 1
  • Rank: 5193

References

UrlSourceTags
https://github.com/flavorjones/loofah/issues/154nvdThird Party Advisory
https://www.debian.org/security/2019/dsa-4364nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
loofah_project:loofah<= 2.2.2nonvd/v1/products/loofah_project/loofah
debian:debian_linux= 9.0nonvd/v1/products/debian/debian_linux

Projects

RepositoryLink kindsIndexedUrl
flavorjones/loofahissues, packageyes/v1/repositories/flavorjones/loofah

Index

  • Repositories: 12
  • Packages: 1
  • Checked, none or zero: repositories high signal

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Hackerone reports: 1
  • Exposed hosts: 4706702
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since