Vulnerabilities · 2018 · Rubyonrails
CVE-2018-3741
Rubyonrails Html Sanitizer vulnerability
There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately.
Affected products
Html Sanitizer. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Rubyonrails Html Sanitizer runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
More vulnerabilities in Rubyonrails products
CVE-2024-53989CVE-2024-53988CVE-2024-53987CVE-2024-53986CVE-2024-53985CVE-2024-32464CVE-2024-28103CVE-2024-26144All 134
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.