CVE-2018-3741
Last modified
CVE-2018-3741 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 1.15% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Rubyonrails | Html Sanitizer | <= 1.0.3 |
References
- https://github.com/rails/rails-html-sanitizer/commit/f3ba1a839a35f2ba7f941c15e239a1cb379d56aeIssue Tracking, Patch, Third Party Advisory
- https://github.com/rails/rails-html-sanitizer/commit/f3ba1a839a35f2ba7f941c15e239a1cb379d56aeIssue Tracking, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2018-3741?
How severe is CVE-2018-3741?
How do I fix CVE-2018-3741?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2018
- CVE-2018-3735bracket-template suffers from reflected XSS possible when va…6.1
- CVE-2018-3736Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultI…
- CVE-2018-3737sshpk is vulnerable to ReDoS when parsing crafted invalid pu…7.5
- CVE-2018-3738protobufjs is vulnerable to ReDoS when parsing crafted inval…5.5
- CVE-2018-3739https-proxy-agent before 2.1.1 passes auth option to the Buf…
- CVE-2018-3740A specially crafted HTML fragment can cause Sanitize gem for…
- CVE-2018-3742Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultI…
- CVE-2018-3743Open redirect in hekto <=0.2.3 when target domain name is us…6.1
- CVE-2018-3744The html-pages node module contains a path traversal vulnera…9.8
- CVE-2018-3745atob 2.0.3 and earlier allocates uninitialized Buffers when …9.1
- CVE-2018-3746The pdfinfojs NPM module versions <= 0.3.6 has a command inj…9.8
- CVE-2018-3747The public node module versions <= 1.0.3 allows to embed HTM…
Are you affected by CVE-2018-3741?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
