rails-html-sanitizer
HTML sanitization for Rails applications
Activity
- Latest release
- 1mo ago
- Total releases
- 21
- Cadence
- ~4 months
- Last 12 months
- 2
Reach
- Stars
- —
Details
- License
- MIT
- First release
- Aug 19, 2014
| Version | Released | |
|---|---|---|
1.7.1
patch
|
1.7.1
patch
Dependencies (2)
Changelog
Compare changes
|
|
1.7.0
minor
1 CVE
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev |
1.7.0
minor
Dependencies (2)
Changelog
Compare changes
|
|
1.6.2
patch
1 CVE
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev |
1.6.2
patch
Dependencies (2)
Changelog
Compare changes
|
|
1.6.1
patch
1 CVE
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev |
1.6.1
patch
Dependencies (2)
Changelog
Compare changes
|
|
1.6.0
minor
6 CVEs
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-53989
GHSA-rxv5-gxqc-xx8g
Dec 02, 2024
rails-html-sanitizer has XSS vulnerability with certain configurations
Low
Network
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0.
ImpactA possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags in the following way:
Code is only impacted if Rails is configured to use HTML5 sanitization, please see documentation for The default configuration is to disallow all of these elements. Code is only impacted if allowed tags are being overridden. Applications may be doing this in a few different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
(note that this class may also be referenced as
(note that this class may also be referenced as
All users overriding the allowed tags by any of the above mechanisms to include "noscript" should either upgrade or use one of the workarounds. WorkaroundsAny one of the following actions will work around this issue:
References
CreditThis vulnerability was responsibly reported by So Sakaguchi (mokusou) and taise. Affected versions
1.6.0
Fixed in
1.6.1
References
Updated Dec 03, 2024 · Source: OSV.dev
CVE-2024-53987
GHSA-2x5m-9ch4-qgrr
Dec 02, 2024
rails-html-sanitizer has XSS vulnerability with certain configurations
Low
Network
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0.
ImpactA possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags in the following way:
Code is only impacted if Rails is configured to use HTML5 sanitization, please see documentation for The default configuration is to disallow all of these elements. Code is only impacted if allowed tags are being overridden. Applications may be doing this in a few different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
(note that this class may also be referenced as
(note that this class may also be referenced as
All users overriding the allowed tags by any of the above mechanisms to include "style" and omit "svg" or "math" should either upgrade or use one of the workarounds. WorkaroundsAny one of the following actions will work around this issue:
References
CreditThis vulnerability was responsibly reported by So Sakaguchi (mokusou) and taise. Affected versions
1.6.0
Fixed in
1.6.1
References
Updated Dec 03, 2024 · Source: OSV.dev
CVE-2024-53988
GHSA-cfjx-w229-hgx5
Dec 02, 2024
rails-html-sanitizer has XSS vulnerability with certain configurations
Low
Network
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0.
ImpactA possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags in the following way:
Code is only impacted if Rails is configured to use HTML5 sanitization, please see documentation for The default configuration is to disallow all of these elements except for "table". Code is only impacted if allowed tags are being overridden. Applications may be doing this in a few different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
(note that this class may also be referenced as
(note that this class may also be referenced as
All users overriding the allowed tags by any of the above mechanisms to include ("math" and "mtext" and "table" and "style" and ("mglyph" or "malignmark")) should either upgrade or use one of the workarounds. WorkaroundsAny one of the following actions will work around this issue:
References
CreditThis vulnerability was responsibly reported by So Sakaguchi (mokusou) and taise. Affected versions
1.6.0
Fixed in
1.6.1
References
Updated Dec 03, 2024 · Source: OSV.dev
CVE-2024-53986
GHSA-638j-pmjw-jq48
Dec 02, 2024
rails-html-sanitizer has XSS vulnerability with certain configurations
Low
Network
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0.
ImpactA possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags in the following way:
Code is only impacted if Rails is configured to use HTML5 sanitization, please see documentation for The default configuration is to disallow these elements. Code is only impacted if allowed tags are being overridden. Applications may be doing this in a few different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
(note that this class may also be referenced as
(note that this class may also be referenced as
All users overriding the allowed tags by any of the above mechanisms to include both "math" and "style" should either upgrade or use one of the workarounds. WorkaroundsAny one of the following actions will work around this issue:
References
CreditThis vulnerability was responsibly reported by So Sakaguchi (mokusou) and taise. Affected versions
1.6.0
Fixed in
1.6.1
References
Updated Dec 03, 2024 · Source: OSV.dev
CVE-2024-53985
GHSA-w8gc-x259-rc7x
Dec 02, 2024
rails-html-sanitize has XSS vulnerability with certain configurations
Low
Network
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0 and Nokogiri < 1.15.7, or 1.16.x < 1.16.8.
Please note that the fix in v1.6.1 is to update the dependency on Nokogiri to 1.15.7 or >= 1.16.8. ImpactA possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if Rails is configured to use HTML5 sanitization, please see documentation for Code is only impacted if allowed tags are being overridden. Applications may be doing this in a few different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
(note that this class may also be referenced as
(note that this class may also be referenced as
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds. WorkaroundsAny one of the following actions will work around this issue:
References
CreditThis vulnerability was responsibly reported by So Sakaguchi (mokusou) and taise. Affected versions
1.6.0
Fixed in
1.6.1
References
Updated Dec 03, 2024 · Source: OSV.dev | ||
1.6.0.rc2
pre
1 CVE
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev | ||
1.6.0.rc1
pre
1 CVE
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev | ||
1.5.0
minor
1 CVE
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev | ||
1.4.4
patch
1 CVE
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev | ||
1.4.3
patch
5 CVEs
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23518
GHSA-mcvf-2q2m-x72m
Dec 13, 2022
Improper neutralization of data URIs may allow XSS in rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Summaryrails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as Medium Severity 6.1. References
CreditThis vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev | ||
1.4.2
patch
6 CVEs
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23518
GHSA-mcvf-2q2m-x72m
Dec 13, 2022
Improper neutralization of data URIs may allow XSS in rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Summaryrails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as Medium Severity 6.1. References
CreditThis vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-32209
GHSA-pg8v-g4xq-hww9
Jun 25, 2022
Rails::Html::Sanitizer vulnerable to Cross-site Scripting
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Versions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both This may be done via application configuration: see https://guides.rubyonrails.org/configuring.html#configuring-action-view Or it may be done with a see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize It may also be done with Rails::Html::SafeListSanitizer directly:
All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either Affected versions
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
Fixed in
1.4.3
References
Updated Nov 04, 2025 · Source: OSV.dev | ||
1.4.0
minor
6 CVEs
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23518
GHSA-mcvf-2q2m-x72m
Dec 13, 2022
Improper neutralization of data URIs may allow XSS in rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Summaryrails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as Medium Severity 6.1. References
CreditThis vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-32209
GHSA-pg8v-g4xq-hww9
Jun 25, 2022
Rails::Html::Sanitizer vulnerable to Cross-site Scripting
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Versions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both This may be done via application configuration: see https://guides.rubyonrails.org/configuring.html#configuring-action-view Or it may be done with a see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize It may also be done with Rails::Html::SafeListSanitizer directly:
All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either Affected versions
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
Fixed in
1.4.3
References
Updated Nov 04, 2025 · Source: OSV.dev | ||
1.4.1
patch
6 CVEs
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23518
GHSA-mcvf-2q2m-x72m
Dec 13, 2022
Improper neutralization of data URIs may allow XSS in rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Summaryrails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as Medium Severity 6.1. References
CreditThis vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-32209
GHSA-pg8v-g4xq-hww9
Jun 25, 2022
Rails::Html::Sanitizer vulnerable to Cross-site Scripting
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Versions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both This may be done via application configuration: see https://guides.rubyonrails.org/configuring.html#configuring-action-view Or it may be done with a see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize It may also be done with Rails::Html::SafeListSanitizer directly:
All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either Affected versions
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
Fixed in
1.4.3
References
Updated Nov 04, 2025 · Source: OSV.dev | ||
1.3.0
minor
6 CVEs
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23518
GHSA-mcvf-2q2m-x72m
Dec 13, 2022
Improper neutralization of data URIs may allow XSS in rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Summaryrails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as Medium Severity 6.1. References
CreditThis vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-32209
GHSA-pg8v-g4xq-hww9
Jun 25, 2022
Rails::Html::Sanitizer vulnerable to Cross-site Scripting
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Versions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both This may be done via application configuration: see https://guides.rubyonrails.org/configuring.html#configuring-action-view Or it may be done with a see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize It may also be done with Rails::Html::SafeListSanitizer directly:
All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either Affected versions
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
Fixed in
1.4.3
References
Updated Nov 04, 2025 · Source: OSV.dev | ||
1.2.0
minor
6 CVEs
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23518
GHSA-mcvf-2q2m-x72m
Dec 13, 2022
Improper neutralization of data URIs may allow XSS in rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Summaryrails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as Medium Severity 6.1. References
CreditThis vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-32209
GHSA-pg8v-g4xq-hww9
Jun 25, 2022
Rails::Html::Sanitizer vulnerable to Cross-site Scripting
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Versions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both This may be done via application configuration: see https://guides.rubyonrails.org/configuring.html#configuring-action-view Or it may be done with a see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize It may also be done with Rails::Html::SafeListSanitizer directly:
All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either Affected versions
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
Fixed in
1.4.3
References
Updated Nov 04, 2025 · Source: OSV.dev | ||
1.1.0
minor
6 CVEs
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23518
GHSA-mcvf-2q2m-x72m
Dec 13, 2022
Improper neutralization of data URIs may allow XSS in rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Summaryrails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as Medium Severity 6.1. References
CreditThis vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-32209
GHSA-pg8v-g4xq-hww9
Jun 25, 2022
Rails::Html::Sanitizer vulnerable to Cross-site Scripting
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Versions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both This may be done via application configuration: see https://guides.rubyonrails.org/configuring.html#configuring-action-view Or it may be done with a see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize It may also be done with Rails::Html::SafeListSanitizer directly:
All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either Affected versions
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
Fixed in
1.4.3
References
Updated Nov 04, 2025 · Source: OSV.dev | ||
1.0.4
patch
6 CVEs
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23518
GHSA-mcvf-2q2m-x72m
Dec 13, 2022
Improper neutralization of data URIs may allow XSS in rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Summaryrails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as Medium Severity 6.1. References
CreditThis vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-32209
GHSA-pg8v-g4xq-hww9
Jun 25, 2022
Rails::Html::Sanitizer vulnerable to Cross-site Scripting
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Versions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both This may be done via application configuration: see https://guides.rubyonrails.org/configuring.html#configuring-action-view Or it may be done with a see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize It may also be done with Rails::Html::SafeListSanitizer directly:
All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either Affected versions
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
Fixed in
1.4.3
References
Updated Nov 04, 2025 · Source: OSV.dev | ||
1.0.3
patch
7 CVEs
CVE-2026-73648
GHSA-cj75-f6xr-r4g7
Jul 21, 2026
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations
Medium
Network
Low
None
SummaryThere is a possible cross-site scripting vulnerability in rails-html-sanitizer when the sanitizer is configured to allow an SVG reference element such as
Impact
Applications are impacted only when the allowed tags are overridden to include one of these SVG reference elements, for example WorkaroundsRemove the SVG reference elements (such as References
CreditFound by maintainer Mike Dalessio during a security audit. Affected versions
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
1.4.4
1.5.0
1.6.0
+ 5 more Show less
1.6.0.rc1
1.6.0.rc2
1.6.1
1.6.2
1.7.0
Fixed in
1.7.1
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23518
GHSA-mcvf-2q2m-x72m
Dec 13, 2022
Improper neutralization of data URIs may allow XSS in rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Summaryrails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as Medium Severity 6.1. References
CreditThis vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-32209
GHSA-pg8v-g4xq-hww9
Jun 25, 2022
Rails::Html::Sanitizer vulnerable to Cross-site Scripting
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Versions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both This may be done via application configuration: see https://guides.rubyonrails.org/configuring.html#configuring-action-view Or it may be done with a see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize It may also be done with Rails::Html::SafeListSanitizer directly:
All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either Affected versions
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
Fixed in
1.4.3
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2018-3741
GHSA-px3r-jm9g-c8w8
Apr 26, 2018
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately. Affected versions
1.0.0
1.0.1
1.0.2
1.0.3
Fixed in
1.0.4
References Updated Nov 08, 2023 · Source: OSV.dev | ||
1.0.2
patch
8 CVEs
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-32209
GHSA-pg8v-g4xq-hww9
Jun 25, 2022
Rails::Html::Sanitizer vulnerable to Cross-site Scripting
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Versions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both This may be done via application configuration: see https://guides.rubyonrails.org/configuring.html#configuring-action-view Or it may be done with a see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize It may also be done with Rails::Html::SafeListSanitizer directly:
All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either Affected versions
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
Fixed in
1.4.3
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2018-3741
GHSA-px3r-jm9g-c8w8
Apr 26, 2018
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately. Affected versions
1.0.0
1.0.1
1.0.2
1.0.3
Fixed in
1.0.4
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2015-7578
GHSA-59c7-4xj2-hgvw
Oct 24, 2017
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Cross-site scripting (XSS) vulnerability in the rails-html-sanitizer gem before 1.0.3 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via crafted tag attributes. Affected versions
1.0.0
1.0.1
1.0.2
Fixed in
1.0.3
References
Updated Feb 16, 2024 · Source: OSV.dev
CVE-2015-7579
GHSA-r9c2-cr39-c8g6
Oct 24, 2017
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Cross-site scripting (XSS) vulnerability in the rails-html-sanitizer gem 1.0.2 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via an HTML entity that is mishandled by the Affected versions
1.0.0
1.0.1
1.0.2
Fixed in
1.0.3
References
Updated Nov 08, 2023 · Source: OSV.dev
CVE-2015-7580
GHSA-ghqm-pgxj-37gq
Oct 24, 2017
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Cross-site scripting (XSS) vulnerability in Affected versions
1.0.0
1.0.1
1.0.2
Fixed in
1.0.3
References
Updated Feb 16, 2024 · Source: OSV.dev | ||
1.0.1
patch
8 CVEs
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-32209
GHSA-pg8v-g4xq-hww9
Jun 25, 2022
Rails::Html::Sanitizer vulnerable to Cross-site Scripting
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Versions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both This may be done via application configuration: see https://guides.rubyonrails.org/configuring.html#configuring-action-view Or it may be done with a see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize It may also be done with Rails::Html::SafeListSanitizer directly:
All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either Affected versions
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
Fixed in
1.4.3
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2018-3741
GHSA-px3r-jm9g-c8w8
Apr 26, 2018
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately. Affected versions
1.0.0
1.0.1
1.0.2
1.0.3
Fixed in
1.0.4
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2015-7578
GHSA-59c7-4xj2-hgvw
Oct 24, 2017
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Cross-site scripting (XSS) vulnerability in the rails-html-sanitizer gem before 1.0.3 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via crafted tag attributes. Affected versions
1.0.0
1.0.1
1.0.2
Fixed in
1.0.3
References
Updated Feb 16, 2024 · Source: OSV.dev
CVE-2015-7579
GHSA-r9c2-cr39-c8g6
Oct 24, 2017
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Cross-site scripting (XSS) vulnerability in the rails-html-sanitizer gem 1.0.2 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via an HTML entity that is mishandled by the Affected versions
1.0.0
1.0.1
1.0.2
Fixed in
1.0.3
References
Updated Nov 08, 2023 · Source: OSV.dev
CVE-2015-7580
GHSA-ghqm-pgxj-37gq
Oct 24, 2017
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Cross-site scripting (XSS) vulnerability in Affected versions
1.0.0
1.0.1
1.0.2
Fixed in
1.0.3
References
Updated Feb 16, 2024 · Source: OSV.dev | ||
1.0.0
initial
8 CVEs
CVE-2022-23520
GHSA-rrfc-7g8p-99q8
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer. This is due to an incomplete fix of CVE-2022-32209.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden using either of the following two mechanisms:
(see https://guides.rubyonrails.org/configuring.html#configuring-action-view)
All users overriding the allowed tags by either of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately. NOTE: Code is not impacted if allowed tags are overridden using either of the following mechanisms:
WorkaroundsRemove either "select" or "style" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23519
GHSA-9h9g-93gc-623h
Dec 13, 2022
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
SummaryThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.
ImpactA possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways:
Code is only impacted if allowed tags are being overridden. Applications may be doing this in four different ways:
see https://guides.rubyonrails.org/configuring.html#configuring-action-view
see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
All users overriding the allowed tags by any of the above mechanisms to include (("math" or "svg") and "style") should either upgrade or use one of the workarounds immediately. WorkaroundsRemove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags. References
CreditThis vulnerability was responsibly reported by Dominic Breuker. Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-23517
GHSA-5x79-w82f-gw8w
Dec 13, 2022
Inefficient Regular Expression Complexity in rails-html-sanitizer
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
SummaryCertain configurations of rails-html-sanitizer MitigationUpgrade to rails-html-sanitizer SeverityThe maintainers have evaluated this as High Severity 7.5 (CVSS3.1). References
CreditThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q). Affected versions
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
Fixed in
1.4.4
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2022-32209
GHSA-pg8v-g4xq-hww9
Jun 25, 2022
Rails::Html::Sanitizer vulnerable to Cross-site Scripting
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Versions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both This may be done via application configuration: see https://guides.rubyonrails.org/configuring.html#configuring-action-view Or it may be done with a see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize It may also be done with Rails::Html::SafeListSanitizer directly:
All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either Affected versions
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
Fixed in
1.4.3
References
Updated Nov 04, 2025 · Source: OSV.dev
CVE-2018-3741
GHSA-px3r-jm9g-c8w8
Apr 26, 2018
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately. Affected versions
1.0.0
1.0.1
1.0.2
1.0.3
Fixed in
1.0.4
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2015-7578
GHSA-59c7-4xj2-hgvw
Oct 24, 2017
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Cross-site scripting (XSS) vulnerability in the rails-html-sanitizer gem before 1.0.3 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via crafted tag attributes. Affected versions
1.0.0
1.0.1
1.0.2
Fixed in
1.0.3
References
Updated Feb 16, 2024 · Source: OSV.dev
CVE-2015-7579
GHSA-r9c2-cr39-c8g6
Oct 24, 2017
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Cross-site scripting (XSS) vulnerability in the rails-html-sanitizer gem 1.0.2 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via an HTML entity that is mishandled by the Affected versions
1.0.0
1.0.1
1.0.2
Fixed in
1.0.3
References
Updated Nov 08, 2023 · Source: OSV.dev
CVE-2015-7580
GHSA-ghqm-pgxj-37gq
Oct 24, 2017
rails-html-sanitizer Cross-site Scripting vulnerability
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
Cross-site scripting (XSS) vulnerability in Affected versions
1.0.0
1.0.1
1.0.2
Fixed in
1.0.3
References
Updated Feb 16, 2024 · Source: OSV.dev |