ADVISORIES

GitHub Advisory Database

GHSA-x7rv-cr6v-4vm4

Cross-site Scripting in loofah

Moderate CVE-2018-8048

Details

Loofah allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments.

Users are affected if running Loofah < 2.2.1, but only:

  • when running on MRI or RBX,
  • in combination with libxml2 >= 2.9.2.

JRuby users are not affected.

Affected packages

EcosystemPackageAffected versions
RubyGemsloofah
All versions before 2.2.1 (fixed in 2.2.1)
RubyGemsnokogiri
All versions before 1.8.3 (fixed in 1.8.3)

References