USN-9438-1: ruby-rails-html-sanitizer vulnerabilities

Published Dec 2, 2026
·
Updated

It was discovered that Rails HTML Sanitizer used an inefficient regular expression when sanitizing certain attributes. A remote attacker could possibly use this issue to cause Rails HTML Sanitizer to use excessive resources, leading to a denial of service. (CVE-2022-23517)

It was discovered that Rails HTML Sanitizer did not properly sanitize certain URIs. A remote attacker could possibly use this issue to perform cross-site scripting attacks. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2022-23518)

It was discovered that Rails HTML Sanitizer did not properly sanitize content under certain configurations. A remote attacker could possibly use this issue to perform cross-site scripting attacks. (CVE-2022-23519)

It was discovered that Rails HTML Sanitizer did not properly sanitize content under certain other configurations. A remote attacker could possibly use these issues to perform cross-site scripting attacks. (CVE-2022-23520, CVE-2022-32209)

Affected Software

4 affected componentsFixes available
ubuntu/ruby-rails-html-sanitizer<1.0.3-2ubuntu0.1~esm1
1.0.3-2ubuntu0.1~esm1
ubuntu/ruby-rails-html-sanitizer<1.0.4-1ubuntu0.1~esm1
1.0.4-1ubuntu0.1~esm1
ubuntu/ruby-rails-html-sanitizer<1.3.0-1ubuntu0.1~esm1
1.3.0-1ubuntu0.1~esm1
ubuntu/ruby-rails-html-sanitizer<1.4.2-2ubuntu0.1~esm1
1.4.2-2ubuntu0.1~esm1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/ruby-rails-html-sanitizer to a version that resolves this vulnerability.

    Fixed in 1.0.3-2ubuntu0.1~esm1
  2. Upgrade

    Upgrade ubuntu/ruby-rails-html-sanitizer to a version that resolves this vulnerability.

    Fixed in 1.0.4-1ubuntu0.1~esm1
  3. Upgrade

    Upgrade ubuntu/ruby-rails-html-sanitizer to a version that resolves this vulnerability.

    Fixed in 1.3.0-1ubuntu0.1~esm1
  4. Upgrade

    Upgrade ubuntu/ruby-rails-html-sanitizer to a version that resolves this vulnerability.

    Fixed in 1.4.2-2ubuntu0.1~esm1

Event History

Dec 2, 2026
Advisory Published
via OSV·07:40 PM
Data Sourced
via OSV·07:40 PM
DescriptionAffected Software

Frequently Asked Questions

1

What attacker interaction is required for exploitation?

The issues can be triggered remotely. For the denial-of-service issue, an attacker needs to cause sanitization of certain attributes; for the cross-site scripting issues, they need to supply content or URIs that reach affected sanitization paths.

2

Which Ubuntu releases are affected by the URI sanitization cross-site scripting issue?

The URI sanitization issue tracked as CVE-2022-23518 affects Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS only.

3

What impact should be prioritized during triage?

CVE-2022-23517 can cause excessive resource consumption and denial of service. CVE-2022-23518, CVE-2022-23519, CVE-2022-23520, and CVE-2022-32209 can allow cross-site scripting when affected sanitization behavior and configurations are used.

4

Are all of the cross-site scripting issues configuration-independent?

No. CVE-2022-23519 affects content sanitization under certain configurations, and CVE-2022-23520 and CVE-2022-32209 affect content sanitization under certain other configurations. The provided information does not identify the specific configurations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203