RubyGems (Ruby)Worst: High4 advisories

sanitize: known vulnerabilities

sanitize has 4 reviewed security advisories in the GitHub Advisory Database — 3 high, 1 moderate. The most recent was published 2023-07-06. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the sanitize versions running across your servers, containers and images, and ranks what to patch first.

How to fix sanitize

Upgrade sanitize to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):

bundle update sanitize to 6.0.2 (or gem install sanitize -v 6.0.2)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (4)

Sanitize vulnerable to Cross-site Scripting via insufficient neutralization of `style` element content High 7.1 CWE-79 — Affected: from 3.0.0 up to 6.0.2. Fixed in 6.0.2. Published 2023-07-06. GHSA-f5ww-cq3m-q3g7 · CVE-2023-36823
Improper neutralization of `noscript` element content may allow XSS in Sanitize Moderate 6.1 CWE-79 — Affected: from 5.0.0 up to 6.0.1. Fixed in 6.0.1. Published 2023-01-28. GHSA-fw3g-2h3j-qmm7 · CVE-2023-23627
Cross-site Scripting in Sanitize High 7.3 CWE-79 — Affected: from 3.0.0 up to 5.2.1. Fixed in 5.2.1. Published 2020-06-16. GHSA-p4x4-rw2p-8j8m · CVE-2020-4054
Sanitize vulnerable to Improper Input Validation and Cross-site Scripting High 7.5 CWE-20 CWE-79 — Affected: from 3.0.0 up to 4.6.3. Fixed in 4.6.3. Published 2018-03-30. GHSA-7f42-p84j-f58p · CVE-2018-3740

Find sanitize across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.