GHSA-mcvf-2q2m-x72m
Vulnerability from github
Published
2022-12-13 17:45
Modified
2023-09-14 16:22
Severity ?
Summary
Improper neutralization of data URIs may allow XSS in rails-html-sanitizer
Details
Summary
rails-html-sanitizer >= 1.0.3, < 1.4.4
is vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0
.
Mitigation
Upgrade to rails-html-sanitizer >= 1.4.4
.
Severity
The maintainers have evaluated this as Medium Severity 6.1.
References
- CWE - CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (4.9)
- SVG MIME Type (image/svg+xml) is misleading to developers · Issue #266 · w3c/svgwg
- https://github.com/rails/rails-html-sanitizer/issues/135
- https://hackerone.com/reports/1694173
Credit
This vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche).
{ "affected": [ { "package": { "ecosystem": "RubyGems", "name": "rails-html-sanitizer" }, "ranges": [ { "events": [ { "introduced": "1.0.3" }, { "fixed": "1.4.4" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2022-23518" ], "database_specific": { "cwe_ids": [ "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2022-12-13T17:45:39Z", "nvd_published_at": "2022-12-14T17:15:00Z", "severity": "MODERATE" }, "details": "## Summary\n\nrails-html-sanitizer `\u003e= 1.0.3, \u003c 1.4.4` is vulnerable to cross-site scripting via data URIs when used in combination with Loofah `\u003e= 2.1.0`.\n\n\n## Mitigation\n\nUpgrade to rails-html-sanitizer `\u003e= 1.4.4`.\n\n\n## Severity\n\nThe maintainers have evaluated this as [Medium Severity 6.1](https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).\n\n\n## References\n\n- [CWE - CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027) (4.9)](https://cwe.mitre.org/data/definitions/79.html)\n- [SVG MIME Type (image/svg+xml) is misleading to developers \u00b7 Issue #266 \u00b7 w3c/svgwg](https://github.com/w3c/svgwg/issues/266)\n- https://github.com/rails/rails-html-sanitizer/issues/135\n- https://hackerone.com/reports/1694173\n\n\n## Credit\n\nThis vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche).\n", "id": "GHSA-mcvf-2q2m-x72m", "modified": "2023-09-14T16:22:23Z", "published": "2022-12-13T17:45:39Z", "references": [ { "type": "WEB", "url": "https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-mcvf-2q2m-x72m" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23518" }, { "type": "WEB", "url": "https://github.com/rails/rails-html-sanitizer/issues/135" }, { "type": "WEB", "url": "https://github.com/w3c/svgwg/issues/266" }, { "type": "WEB", "url": "https://hackerone.com/reports/1694173" }, { "type": "PACKAGE", "url": "https://github.com/rails/rails-html-sanitizer" }, { "type": "WEB", "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/CVE-2022-23518.yml" }, { "type": "WEB", "url": "https://lists.debian.org/debian-lts-announce/2023/09/msg00012.html" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "type": "CVSS_V3" } ], "summary": "Improper neutralization of data URIs may allow XSS in rails-html-sanitizer" }
Loading...
Loading...
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.