sanitize vulnerabilities
Sanitize is an allowlist-based HTML and CSS sanitizer. It removes all HTML and/or CSS from a string except the elements, attributes, and properties you choose to allow.
- Registry
- RubyGems
- Latest
- 7.0.2
- License
- MIT
4 known advisories
The latest version, 7.0.2, is not affected by any of them. Projects on older versions may be.
bundle update --conservative sanitize # Gemfile: '>= 7.0.2'Is your project on an affected sanitize?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for sanitize
Sanitize vulnerable to Cross-site Scripting via insufficient neutralization of `style` element content
- Affected
- >=3.0.0 <6.0.2
- Fixed in
- 6.0.2
Improper neutralization of `noscript` element content may allow XSS in Sanitize
- Affected
- >=5.0.0 <6.0.1
- Fixed in
- 6.0.1
Cross-site Scripting in Sanitize
- Affected
- >=3.0.0 <5.2.1
- Fixed in
- 5.2.1
Sanitize vulnerable to Improper Input Validation and Cross-site Scripting
- Affected
- >=3.0.0 <4.6.3
- Fixed in
- 4.6.3
Is your sanitize version vulnerable?
Which of your client projects still run an old sanitize?
NPMscan reads the Gemfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.
Other RubyGems packages
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the RubyGems registry.