GHSA-5x79-w82f-gw8w

Source
https://github.com/advisories/GHSA-5x79-w82f-gw8w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-5x79-w82f-gw8w/GHSA-5x79-w82f-gw8w.json
Aliases
Published
2022-12-13T17:43:02Z
Modified
2024-02-16T08:20:35.513335Z
Summary
Inefficient Regular Expression Complexity in rails-html-sanitizer
Details

Summary

Certain configurations of rails-html-sanitizer < 1.4.4 use an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption.

Mitigation

Upgrade to rails-html-sanitizer >= 1.4.4.

Severity

The maintainers have evaluated this as High Severity 7.5 (CVSS3.1).

References

Credit

This vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q).

References

Affected packages

RubyGems / rails-html-sanitizer

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Fixed
1.4.4

Affected versions

1.*

1.0.0
1.0.1
1.0.2
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