Home / mailingsPDF  

[USN-9510-1] Loofah vulnerabilities

Posted on 04 December 2026
Ubuntu Security

==========================================================================Ubuntu Security Notice USN-9510-1
December 03, 2026

ruby-loofah vulnerabilities
==========================================================================
A security issue affects these releases of Ubuntu and its derivatives:

- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
- Ubuntu 16.04 LTS

Summary:

Several security issues were fixed in Loofah.

Software Description:
- ruby-loofah: manipulation and transformation of HTML/XML documents and fragments

Details:

It was discovered that Loofah did not properly sanitize certain SVG
elements when they were republished. An attacker could possibly use this
issue to inject arbitrary JavaScript into sanitized output. This issue
only affected Ubuntu 18.04 LTS. (CVE-2018-16468, CVE-2019-15587)

It was discovered that Loofah used an inefficient regular expression when
sanitizing certain SVG attributes. An attacker could possibly use this
issue to cause Loofah to use excessive resources, leading to a denial of
service. (CVE-2022-23514)

It was discovered that Loofah did not properly sanitize data URIs using
the image/svg+xml media type. An 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-23515)

It was discovered that Loofah used recursion when sanitizing CDATA
sections, which could lead to stack exhaustion. An attacker could
possibly use this issue to cause Loofah to crash, resulting in a denial
of service. (CVE-2022-23516)

Update instructions:

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 22.04 LTS
ruby-loofah 2.13.0-2ubuntu0.1~esm1
Available with Ubuntu Pro

Ubuntu 20.04 LTS
ruby-loofah 2.4.0+dfsg-1ubuntu0.1~esm1
Available with Ubuntu Pro

Ubuntu 18.04 LTS
ruby-loofah 2.2.2-1ubuntu0.1~esm1
Available with Ubuntu Pro

Ubuntu 16.04 LTS
ruby-loofah 2.0.3-2+deb9u3ubuntu0.1~esm1
Available with Ubuntu Pro

In general, a standard system update will make all the necessary changes.

References:
https://ubuntu.com/security/notices/USN-9510-1
CVE-2018-16468, CVE-2019-15587, CVE-2022-23514, CVE-2022-23515,
CVE-2022-23516

--===============6707800887381635912==Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature

 

TOP