Advisory

GHSA-x7rv-cr6v-4vm4

Also known as: CVE-2018-8048

Summary

Cross-site Scripting in loofah

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-03-21 11:57 UTC
Modified
2024-02-22 05:21 UTC

Affected packages and fixes

loofah

RubyGems · All systems

Affected

  • introduced 0, fixed 2.2.1 (ecosystem)

Fixed versions

2.2.1

Fix

The export has no generic command for this ecosystem.

nokogiri

RubyGems · All systems

Affected

  • introduced 0, fixed 1.8.3 (ecosystem)

Fixed versions

1.8.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences