Advisory

GHSA-7f42-p84j-f58p

Also known as: CVE-2018-3740

Summary

Sanitize vulnerable to Improper Input Validation and Cross-site Scripting

Details

When Sanitize <= 4.6.2 is used in combination with libxml2 >= 2.9.2, a specially crafted HTML fragment can cause libxml2 to generate improperly escaped output, allowing non-whitelisted attributes to be used on whitelisted elements.

This can allow HTML and JavaScript injection, which could result in XSS if Sanitize's output is served to browsers.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2018-03-21 11:56 UTC
Modified
2024-02-16 08:20 UTC

Affected packages and fixes

sanitize

RubyGems · All systems

Affected

  • introduced 3.0.0, fixed 4.6.3 (ecosystem)

Fixed versions

4.6.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