VDB

CVE-2018-3740

CVE-2018-3740 PUBLISHED CVSS 7.5 HIGH

Sanitize vulnerable to Improper Input Validation and Cross-site Scripting

Reported by hackerone · Published March 30, 2018

sanitize is fixed in 4.6.3 (RubyGems)

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
sanitizeRubyGems4.6.3

Risk scores

CVSS 3.0
7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
Ryan Grovesanitize (ruby gem)< 4.6.3
Ryan Grovesanitize (ruby gem)0
RubyGemssanitize1.1.0
archgitlab0

Timeline

  • Mar 21, 2018 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Apr 10, 2026 Security Advisory (2 in total, the first dated here)
  • Jun 17, 2026 CVE Updated
  • Sep 20, 2026 Coalition ESS Score
  • Oct 31, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2018-3740
vulnetix vdb fixes CVE-2018-3740

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-3740/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • DSA-4358 vendor-advisoryx_refsource_DEBIAN
  • x_refsource_CONFIRM
  • x_refsource_CONFIRM
  • x_refsource_CONFIRM
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›