Security mailing lists by PureSourceCode

CVE-2018-8048

MEDIUM 6.1CVSS 3.0

Cross-site Scripting in loofah

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.

Published
27 Mar 2018
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-x7rv-cr6v-4vm4
Sources
NVDJSONOSV GHSA-x7rv-cr6v-4vm4JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 MEDIUM 6.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.0 MEDIUM 6.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD loofah_project loofah
cpe:2.3:a:loofah_project:loofah:*:*:*:*:*:ruby:*:*
< 2.2.1 2.2.1
OSV RubyGems loofah < 2.2.1 2.2.1
OSV RubyGems nokogiri < 1.8.3 1.8.3

References

History

  • 25 Nov 2026 20:20 UTC · NVD: first stored (published 27 Mar 2018)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Mar 2018)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.