Improper Input Validation Affecting ruby-sanitize package, versions <4.6.6-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.47% (73rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-RUBYSANITIZE-22587915
  • published18 Nov 2026
  • disclosed30 Mar 2018

Introduced: 30 Mar 2018

CVE-2018-3740  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade Echo:latest ruby-sanitize to version 4.6.6-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-sanitize package and not the ruby-sanitize package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.