SecurityContext

CVE-2018-8048: Loofah - Stored XSS

  • Cve: CVE-2018-8048
  • Name: Loofah - Stored XSS
  • Description: 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.
  • Impact: Attackers can inject malicious attributes into HTML, potentially leading to cross-site scripting or other injection attacks.
  • Remediation: Update to version 2.2.1 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs to craft malicious HTML fragment
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.01925
  • Epss percentile: 0.80491
  • Assignee: [email protected]
  • Published at: 2018-03-27T17:29:00Z
  • Age in days: 3164
  • Modified at: 2026-06-17T02:04:10Z
  • Patch available: yes
  • References total: 4
  • Products total: 2
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-8048
  • Nvd status: modified
  • Checked, none or zero: 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: 2
  • Rank: 3792

References

Same in every row:

  • Source: nvd
UrlTags
http://www.openwall.com/lists/oss-security/2018/03/19/5Mailing List, Third Party Advisory
https://github.com/flavorjones/loofah/issues/144Third Party Advisory
https://www.debian.org/security/2018/dsa-4171Third Party Advisory
https://security.netapp.com/advisory/ntap-20191122-0003/

Products

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

Projects

RepositoryLink kindsIndexedUrl
sparklemotion/nokogiripullyes/v1/repositories/sparklemotion/nokogiri
flavorjones/loofahcommit, issuesyes/v1/repositories/flavorjones/loofah

Index

  • Repositories: 45
  • Repositories high signal: 8
  • Packages: 2

Exploitation

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