Skip to main content
VulnerabilityPublished

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

Affects onion-locationSource 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:47 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
Homebrewonion-locationpkg:brew/onion-locationOther threatsAffected
  • >=0.1.0
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 given the design of :has() with general sibling combinators and is not considered a bug. Users should avoid applying selectors with :has(a ~ b) or similar patterns on untrusted or large HTML inputs. Limiting the anchor element to those with fewer children and using more specific combinators like > or + inside :has() can reduce traversal and improve performance. Projects at risk should consider scanning user input for :has usage and deny or restrict such selectors. Wrapping selector evaluation in timeouts can prevent long-running CPU usage.

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 causes quadratic time complexity in the number of sibling elements when matched against untrusted HTML, potentially stalling the process for minutes on relatively small inputs. The issue arises because the implementation must scan many sibling elements repeatedly without short-circuiting. This can lead to denial of service by CPU exhaustion if untrusted HTML is processed with such selectors. The vulnerability affects Soup Sieve versions starting from 0.1.0. Mitigations include avoiding such selectors on untrusted input, limiting the use of :has() with general sibling combinators, and applying timeouts or input filtering.

References

Community reviews

Loading reviews…