# CVE-2018-3740: ruby-sanitize: A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a...

CVE-2018-3740 is fixed in ruby-sanitize on 1 platform by ruby-sanitize 2.1.0-2+deb9u1build0.18.04.1 (version 2.1.0-2+deb9u1build0.18.04.1), released March 30, 2018. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2018-3740
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0147
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 30, 2018

## Description

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ruby-sanitize Ubuntu 18.04.6 LTS (bionic) | 2.1.0-2+deb9u1build0.18.04.1 | [ruby-sanitize 2.1.0-2+deb9u1build0.18.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ruby-sanitize-2.1.0-2-deb9u1build0.18.04.1.md) | Mar 30, 2018 |

---

Data as of 2026-11-07T12:40:37Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo
