CVE-2022-23518: rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications
46
This month
MEDIUM 6.1WATCHLISTUPGRADEMITIGATEUPGRADE
CVE-2022-23518 is a medium-severity flaw (CVSS 6.1) affecting rails html sanitizers, debian linux, loofah. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0. This issue is patched in version 1.4.4.
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official sourceNVD · CVE Program · Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-23518?
rails html sanitizers: upgrade to 1.4.4; debian linux: mitigate or apply the listed mitigation; loofah: upgrade to 2.19.1. Exact commands for each OS are on this page.
Is CVE-2022-23518 being exploited?
CVE-2022-23518 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-23518 affect?
CVE-2022-23518 affects rails html sanitizers, debian linux, loofah. Severity is medium (CVSS 6.1). rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0. This issue is patched in
How urgent is CVE-2022-23518?
Priority 46/100. Public exploit reference; On your watchlist