# CVE-2026-128068: rails-html-sanitizer: Possible regular expression denial of service with certain configurations

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-13 · Modified: 2026-11-16
- Aliases: GHSA-cpgf-5mjf-73p7, CGA-23pg-gp93-jp69, CGA-8jq5-5mjj-hc2q, CGA-9r7m-23wr-hfcx, DEBIAN-CVE-2026-128068, CGA-2j6h-jg6c-f336, CGA-3mp8-p9v7-78h3, CGA-82c3-r5p5-rhhw, CGA-chq2-653j-9ppg, CGA-j626-f4f5-vrhq, CGA-j74x-hxx5-5fh3, CGA-j7v4-q2x5-3qqg, CGA-jqx5-h2m9-6p22, CGA-m9j9-p28p-rj48, CGA-p9mx-26xc-c27x, CGA-qw5r-hq4r-mqq7, CGA-79g3-66h3-j88g, CGA-2h56-rc78-wfvp, CGA-3c52-xhx7-4pmf, CGA-wh4j-9pgx-fvpc, CGA-5998-g394-vgf9, UBUNTU-CVE-2026-128068
- Record: https://cvemate.com/vulnerability/CVE-2026-128068 · JSON: https://cvemate.com/vulnerability/CVE-2026-128068/json

## Description

```text
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 through 1.7.1, Rails::HTML::PermitScrubber checks SVG href and xlink:href local references with a pattern whose line-start anchor and whitespace class cause an all-whitespace value to be rescanned from each line start. An attacker who supplies HTML can cause quadratic CPU consumption when an application customizes its allowed tags to include an SVG reference element such as use and permits href or xlink:href. The default allowed tag configuration is not affected. CRuby 3.2 and later uses linear-time regular expression matching for this pattern, while CRuby 3.1 and earlier and JRuby are affected. This issue is fixed in version 1.7.2.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.454%, percentile 41.119%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard commercial-gitlab-rails-ee-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-19.0 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-19.2 (Chainguard): All versions (No fix recorded)
- debian ruby-rails-html-sanitizer (Debian): All versions (No fix recorded) \| \< 1.7.2-1
- ubuntu ruby-rails-html-sanitizer (Ubuntu): All versions (No fix recorded)
- RubyGems rails-html-sanitizer (RubyGems): ≥ 1.0.3, \< 1.7.2
- rails rails-html-sanitizer: ≥ 1.0.3, \< 1.7.2

## References

- <https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cpgf-5mjf-73p7>
- <https://github.com/rails/rails-html-sanitizer/commit/f776f963b9d9346271aade9cb903e793fd38e865>
- <https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2>
- <https://github.com/rails/rails-html-sanitizer>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/GHSA-cpgf-5mjf-73p7.yml>
- <https://security-tracker.debian.org/tracker/CVE-2026-128068>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128068.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-128068>
- <https://ubuntu.com/security/CVE-2026-128068>
- <https://www.cve.org/CVERecord?id=CVE-2026-128068>

---

Data as of 2026-12-05T06:40:42.207Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
