CVE-2022-23518

Source
https://cve.org/CVERecord?id=CVE-2022-23518
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23518.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-23518
Aliases
Downstream
Related
Published
2022-12-14T16:22:34.460Z
Modified
2026-02-25T08:17:43.271232Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Improper neutralization of data URIs allows XSS in rails-html-sanitizer
Details

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0. This issue is patched in version 1.4.4.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23518.json"
}
References

Affected packages

Git / github.com/rails/rails-html-sanitizer

Affected ranges

Type
GIT
Repo
https://github.com/rails/rails-html-sanitizer
Events

Affected versions

v1.*
v1.0.3
v1.0.4
v1.1.0
v1.2.0
v1.3.0
v1.4.0
v1.4.1
v1.4.2
v1.4.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23518.json"