PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-128068 rails CVE debrief

CVE-2026-128068 rails-html-sanitizer: Possible regular expression denial of service with certain configurations. The rails-html-sanitizer gem is vulnerable to a regular expression denial of service attack. The issue affects versions between 1.0.3 and 1.7.1 when certain configurations are used. 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

Vendor
rails
Product
rails-html-sanitizer
CVSS
MEDIUM 5.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-13
Original CVE updated
2026-11-16
Advisory published
2026-11-13
Advisory updated
2026-11-16

Who should care

Defenders responsible for Rails applications using rails-html-sanitizer should assess exposure and prioritize remediation. They should verify if applications customize allowed tags to include SVG reference elements and monitor for potential denial of service attacks. Defenders should also review compensating controls for exposed systems while remediation is scheduled and verified.

Why it matters

Defenders should care about CVE-2026-128068 because it affects rails-html-sanitizer, potentially leading to denial of service attacks through CPU consumption. The issue requires verification of application configurations and allowed tags, and prioritization of remediation for affected versions.

  • Potential denial of service attacks through CPU consumption
  • Verification of application configurations and allowed tags
  • Remediation priority for affected versions

Technical summary

The rails-html-sanitizer gem is vulnerable to a regular expression denial of service attack. The issue affects versions between 1.0.3 and 1.7.1 when certain configurations are used. 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.

Defensive priority

Defenders should prioritize assessment and remediation of rails-html-sanitizer versions between 1.0.3 and 1.7.1, especially in applications customizing allowed tags to include SVG reference elements.

Recommended defensive actions

  • Assess exposure of rails-html-sanitizer versions between 1.0.3 and 1.7.1
  • Verify if applications customize allowed tags to include SVG reference elements
  • Prioritize remediation to version 1.7.2 or later
  • Monitor for potential denial of service attacks
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented

Evidence notes

The CVE record and source item provide details on a regular expression denial of service vulnerability in rails-html-sanitizer. The issue is fixed in version 1.7.2. The vulnerability allows an attacker to cause quadratic CPU consumption by supplying malicious HTML. The affected versions are between 1.0.3 and 1.7.1. 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.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-128068 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-128068

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-128068 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-128068

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • rails-html-sanitizer: Possible regular expression denial of service with certain configurations

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/128xxx/CVE-2026-128068.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cpgf-5mjf-73p7

    Supplemental source - x_refsource_CONFIRM

  • Source reference

    Unverified legacy reference

    URL: https://github.com/rails/rails-html-sanitizer/commit/f776f963b9d9346271aade9cb903e793fd38e865

    Supplemental source - x_refsource_MISC

  • Source reference

    Unverified legacy reference

    URL: https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2

    Supplemental source - x_refsource_MISC

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.