Skip to main content
VulnerabilityPublished

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

Affects aiderSource GCVE Database

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

Not known to be exploited · CVSS 6.3 Medium.

Data as of 13 Nov 2026, 21:33 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
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

Affected software

ProductAffectedFixed in
Homebrewaiderpkg:brew/aiderOther threatsAffected
  • >=0.47.1
Fixed in–

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

AI-suggested

This quadratic-time behavior is expected for certain :has() selectors and is not considered a bug. Users should apply :has() selectors thoughtfully, avoiding anchors with many children and preferring combinators like > or + inside :has() to limit traversal. If the risk is unacceptable, input containing :has() selectors can be denied or filtered. Wrapping selector evaluation calls in timeouts can prevent long-running processes.

Description

CVE-2026-126192 describes a performance-related vulnerability in Soup Sieve when using the CSS selector pattern with a general sibling combinator inside :has(), such as div:has(a ~ b). This pattern causes the selector matching to run in quadratic time relative to the number of sibling elements, leading to significant CPU consumption and potential denial of service when processing untrusted HTML with many siblings. The issue arises because the implementation performs nested scans without short-circuiting when the right-hand selector is absent. This behavior is inherent to the design of :has() and the general sibling combinator, and while optimizations exist, some scenarios will remain costly. The vulnerability affects Soup Sieve versions starting from 0.47.1. The impact is limited to availability degradation due to CPU exhaustion. Mitigations include careful use of :has() selectors, avoiding anchors with many children, preferring more constrained combinators like > or + inside :has(), and applying timeouts or input filtering to prevent long-running evaluations.

References

Community reviews

Loading reviews…