USN-9438-1

Source
https://ubuntu.com/security/notices/USN-9438-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9438-1.json
JSON Data
https://api.osv.dev/v1/vulns/USN-9438-1
Upstream
CVE (5)
Related
Published
2026-12-02T19:40:46Z
Modified
2026-12-03T20:59:14Z
Summary
ruby-rails-html-sanitizer vulnerabilities
Details

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)

References

Affected packages

Ubuntu:Pro:16.04:LTS / ruby-rails-html-sanitizer

Package

Name
ruby-rails-html-sanitizer
Purl
pkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=source&distro=esm-apps-legacy%2Fxenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.0.3-2ubuntu0.1~esm1

Affected versions

1.*
1.0.2-1
1.0.3-1
1.0.3-2

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "ruby-rails-html-sanitizer",
            "binary_version":  "1.0.3-2ubuntu0.1~esm1"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-23517",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-23519",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-23520",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-32209",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:16.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9438-1.json"

Ubuntu:Pro:18.04:LTS / ruby-rails-html-sanitizer

Package

Name
ruby-rails-html-sanitizer
Purl
pkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=source&distro=esm-apps%2Fbionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.0.4-1ubuntu0.1~esm1

Affected versions

1.*
1.0.3-2
1.0.4-1

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "ruby-rails-html-sanitizer",
            "binary_version":  "1.0.4-1ubuntu0.1~esm1"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-23517",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-23518",
            "severity":  [
                {
                    "score":  "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-23519",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-23520",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-32209",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:18.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9438-1.json"

Ubuntu:Pro:20.04:LTS / ruby-rails-html-sanitizer

Package

Name
ruby-rails-html-sanitizer
Purl
pkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=source&distro=esm-apps%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.3.0-1ubuntu0.1~esm1

Affected versions

1.*
1.0.4-1
1.3.0-1

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "ruby-rails-html-sanitizer",
            "binary_version":  "1.3.0-1ubuntu0.1~esm1"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-23517",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-23518",
            "severity":  [
                {
                    "score":  "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-23519",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-23520",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-32209",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:20.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9438-1.json"

Ubuntu:Pro:22.04:LTS / ruby-rails-html-sanitizer

Package

Name
ruby-rails-html-sanitizer
Purl
pkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=source&distro=esm-apps%2Fjammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.4.2-2ubuntu0.1~esm1

Affected versions

1.*
1.3.0-2
1.4.2-1
1.4.2-2

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "ruby-rails-html-sanitizer",
            "binary_version":  "1.4.2-2ubuntu0.1~esm1"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2022-23517",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-23518",
            "severity":  [
                {
                    "score":  "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-23519",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-23520",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "CNA",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        },
        {
            "id":  "CVE-2022-32209",
            "severity":  [
                {
                    "score":  "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
                    "source":  "NVD",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "source":  "SELF",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:22.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9438-1.json"