GHSA-mcvf-2q2m-x72m

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
Aliases
Published
2022-12-13T17:45:39Z
Modified
2024-02-16T08:08:24.050963Z
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

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