GHSA-mcvf-2q2m-x72m

Suggest an improvement
Source
https://github.com/advisories/GHSA-mcvf-2q2m-x72m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-mcvf-2q2m-x72m/GHSA-mcvf-2q2m-x72m.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mcvf-2q2m-x72m
Aliases
Published
2022-12-13T17:45:39Z
Modified
2023-11-01T04:57:53.548170Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
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

Credit

This vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche).

References

Affected packages

RubyGems / rails-html-sanitizer

Package

Name
rails-html-sanitizer
Purl
pkg:gem/rails-html-sanitizer

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.0.3
Fixed
1.4.4

Affected versions

1.*

1.0.3
1.0.4
1.1.0
1.2.0
1.3.0
1.4.0
1.4.1
1.4.2
1.4.3