Security mailing lists by PureSourceCode

CVE-2018-3740

HIGH 7.5CVSS 3.0

Sanitize vulnerable to Improper Input Validation and Cross-site Scripting

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

Published
30 Mar 2018
Last modified
17 Jun 2026
Assigned by
support@hackerone.com
NVD status
Modified
Weakness
CWE-20CWE-79
Also known as
GHSA-7f42-p84j-f58p
Sources
NVDJSONOSV GHSA-7f42-p84j-f58pJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 HIGH 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
OSV GitHub CVSS 3.0 HIGH 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD sanitize_project sanitize
cpe:2.3:a:sanitize_project:sanitize:*:*:*:*:*:ruby:*:*
<= 4.6.0
OSV RubyGems sanitize >= 3.0.0, < 4.6.3 4.6.3

References

History

  • 25 Nov 2026 20:20 UTC · NVD: first stored (published 30 Mar 2018)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Mar 2018)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.