Skip to main content
VulnerabilityPublished

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

Affects pferdSource GCVE Database

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

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

Data as of 13 Nov 2026, 21:17 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 3.9.4_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 pferd to 3.9.4_1.

Affected software

ProductAffectedFixed in
Homebrewpferdpkg:brew/pferdOther threatsAffected
  • >=3.4.2 <3.9.4_1
Fixed in
  • 3.9.4_1

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

AI-suggested

A fix is available in Soup Sieve version 3.9.4_1. Users should upgrade to this version or later to resolve the issue. Additionally, developers should carefully design selectors using :has() to avoid general sibling combinators (~) inside it, especially on elements with many children. Using more constrained combinators like adjacent sibling (+) or child (>) inside :has() can reduce traversal costs. If upgrading is not immediately possible, applications can implement input validation to reject selectors containing :has() with general sibling combinators or apply timeouts to selector evaluations to prevent long-running operations.

Description

CVE-2026-126192 describes a performance vulnerability 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, causing 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 sibling is absent. This behavior is inherent to the selector's design and not unique to Soup Sieve. The vulnerability affects versions from 3.4.2 up to but not including 3.9.4_1, with a fix available in 3.9.4_1. The CVSS 4.0 score is 6.3 (medium severity).

References

Community reviews

Loading reviews…