CVE Hunter
›
CVE-2026-126205

CWE-400 · CWE-1333

MEDIUM CVSS 5.3 GitHub

## Summary Loofah's HTML5 sanitizer restricts the `href` and `xlink:href` attributes of SVG reference elements to local references. That check matched the attribute value against `/^\s*[^#\s].*/m`. In Ruby `^` anchors to every line start and `\s` matches newlines, so an all-whitespace value made the engine rescan the value from each of its line starts, taking time quadratic in its length. Only Ruby 3.1 and earlier are affected. Ruby 3.2 added linear-time regexp matching, which makes the pattern linear. ## Impact An attacker who supplies HTML to be sanitized can consume CPU out of proportion to the input size, by sending an SVG reference element whose `href` or `xlink:href` is a long run of whitespace. The default safelist allows the elements in `SVG_ALLOW_LOCAL_HREF`, so no configuration change is required. ## Mitigation Upgrade to Loofah >= 2.25.3. Applications that cannot upgrade should run Ruby 3.2 or later, which matches the pattern in linear time. ## Credit Reported by sc

Yayınlanma 12.11.2026
ISO Tarih 2026-11-12
Kaynak GitHub
AI Güvenlik Analizi
🤖 Yapay Zeka Güvenlik Analizi Hazırlanıyor…
CVSS vektörü ve CWE zayıflık yapısı inceleniyor…
Hedef Keşif Sorguları
CVSS Skoru
5.3 / 10 · CVSS MEDIUM
Zayıflık Türleri (CWE)
CWE-400 CWE-1333
Etkilenen Ürünler (1)
loofah
Referanslar (4)
İlgili CVE'ler
8.7
CVE-2026-130686
vLLM from 0.6.0 before 0.33.0 lacks a request-wide media budget, allowing remote inference clients to exhaust
7.5
CVE-2026-76417
A vulnerability in Object Linking and Embedding, 2nd Generation (OLE2) file parser for ClamAV could allow an u
7.5
CVE-2026-76515
A vulnerability in the Object Linking and Embedding, 2nd Generation (OLE2) file parser for ClamAV could allow
6.9
CVE-2026-130666
ImageMagick before 7.1.2-35 contains a policy bypass vulnerability that allows attackers to evade resource lim
6.9
CVE-2026-130661
ImageMagick before 7.1.2-35 contains a policy bypass vulnerability in the ASE decoder caused by a missing secu
6.5
CVE-2026-130781
Incus before 7.6.0 contains a resource exhaustion vulnerability in the storage bucket S3 listener, which buffe