Skip to main content
VulnerabilityPublished

CVE-2026-126192: Soup Sieve · General sibling combinator inside :has() matches untrusted HTML in quadratic time

Affects maigretSource GCVE Database

0
Compare
Authoritative record:CVE-2026-126192· Medium 6.3

Not known to be exploited · CVSS 6.3 Medium : upgrade to 0.6.6_1 when convenient.

Data as of 13 Nov 2026, 21:20 UTC

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.06.3
Patch
Available – fixed in 0.6.6_1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.

What to do

Upgrade maigret to 0.6.6_1.

Affected software

ProductAffectedFixed in
Homebrewmaigretpkg:brew/maigretOther threatsAffected
  • >=0.5.0 <0.6.6_1
Fixed in
  • 0.6.6_1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in Soup Sieve version 0.6.6_1 that improves performance for this case. Users should upgrade to this fixed version to mitigate the issue. Additionally, users should avoid applying :has() selectors with general sibling combinators on untrusted HTML inputs. Restricting selectors inside :has() to use adjacent sibling (+) or child (>) combinators can reduce traversal costs. Input containing :has() selectors can be scanned and rejected if necessary. Wrapping selector evaluation calls in timeouts can prevent long-running CPU usage. These mitigations align with vendor guidance that quadratic time behavior is expected in some cases but can be minimized by careful selector design.

Description

CVE-2026-126192 describes a performance issue in Soup Sieve when using a CSS selector with a general sibling combinator (~) inside :has(), such as div:has(a ~ b). This selector runs in quadratic time relative to the number of sibling elements in untrusted HTML, causing potentially long CPU stalls. The issue arises because the algorithm performs nested scans for each candidate element, leading to O(n²) complexity. This can be exploited by an attacker controlling the HTML input to cause denial of service by making the selector evaluation very slow. The vulnerability affects Soup Sieve versions >=0.5.0 and <0.6.6_1 and has a CVSS 4.0 score of 6.3 (medium severity). A fix is available in version 0.6.6_1. Mitigations include avoiding use of :has() with general sibling combinators on untrusted input, restricting selectors to use adjacent sibling (+) or child (>) combinators, and applying timeouts or input filtering to prevent long-running evaluations.

References

Community reviews

Loading reviews…