Advisory

GHSA-px3r-jm9g-c8w8

Also known as: CVE-2018-3741

Summary

rails-html-sanitizer Cross-site Scripting vulnerability

Details

There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-04-26 15:41 UTC
Modified
2023-11-08 04:00 UTC

Affected packages and fixes

rails-html-sanitizer

RubyGems · All systems

Affected

  • introduced 0, fixed 1.0.4 (ecosystem)

Fixed versions

1.0.4

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