# CVE-2022-23514: Inefficient Regular Expression Complexity in Loofah

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.84%, higher than 79% of CVEs (2026-12-01)
- Published: 2022-12-13T17:36:28.000Z
- Modified: 2026-06-17T04:30:16.610Z
- Also known as: GHSA-486f-hjj9-9vhh
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah < 2.19.1 contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption. This issue is patched in version 2.19.1.

(As written by CVE List.)

## Affected

- flavorjones loofah: < 2.19.1
- loofah (RubyGems): before 2.19.1
- loofah_project loofah: before 2.19.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhh> (third-party-advisory, web)
- <https://hackerone.com/reports/1684163> (permissions-required, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html> (web)
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00044.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-23514> (advisory)
- <https://github.com/flavorjones/loofah/commit/a6e0a1ab90675a17b1b2be189129d94139e4b143> (web)
- <https://github.com/flavorjones/loofah> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2022-23514.yml> (web)

## Sources

- CVE List: [CVE-2022-23514](https://www.cve.org/CVERecord?id=CVE-2022-23514), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-486f-hjj9-9vhh](https://github.com/advisories/GHSA-486f-hjj9-9vhh), CC-BY-4.0, modified 2025-11-04
- NVD: [CVE-2022-23514](https://nvd.nist.gov/vuln/detail/CVE-2022-23514), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23514 · Whole record: https://cve.day/CVE-2022-23514.json · Rebuilt by cve.day 2026-11-25T22:58:17.524Z
