CVE-2018-3741
CVSS V2 Medium 4.3
CVSS V3 Medium 6.1
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.
Overview
- CVE ID
- CVE-2018-3741
- Assigner
- support@hackerone.com
- Vulnerability Status
- Analyzed
- Published Version
- 2018-03-30T19:29:00
- Last Modified Date
- 2023-01-30T16:10:42
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:rubyonrails:html_sanitizer:*:*:*:*:*:ruby:*:* | 1 | OR | 1.0.3 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:N/C:N/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- NONE
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 4.3
- Severity
- MEDIUM
- Exploitability Score
- 8.6
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.0
- Vector String
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
- Scope
- CHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- NONE
- Base Score
- 6.1
- Base Severity
- MEDIUM
- Exploitability Score
- 2.8
- Impact Score
- 2.7
References
Reference URL | Reference Tags |
---|---|
https://github.com/rails/rails-html-sanitizer/commit/f3ba1a839a35f2ba7f941c15e239a1cb379d56ae | Issue Tracking Patch Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2018-3741 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-3741 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 17:04:07 | Added to TrackCVE | |||
2022-12-03 04:03:29 | cve-assignments@hackerone.com | support@hackerone.com | CVE Assigner | updated |
2022-12-03 04:03:29 | 2018-03-30T19:29Z | 2018-03-30T19:29:00 | CVE Published Date | updated |
2022-12-03 04:03:29 | 2019-10-09T23:40:34 | CVE Modified Date | updated | |
2022-12-03 04:03:29 | Modified | Vulnerability Status | updated | |
2023-01-27 22:08:42 | Modified | Undergoing Analysis | Vulnerability Status | updated |
2023-01-30 17:07:30 | 2023-01-30T16:10:42 | CVE Modified Date | updated | |
2023-01-30 17:07:30 | Undergoing Analysis | Analyzed | Vulnerability Status | updated |