CVE-2026-115775 is an unauthenticated remote denial-of-service (memory exhaustion) in Twisted's twisted.words.xish.domish XML element stream, used to parse XMPP. The root cause is that the element stream materializes every start tag into an in-memory Element object tree with no limit on depth, child count, or total byte size. An element is only released when its end tag arrives while it sits directly under the document root, so a container element the attacker never closes retains every child beneath it indefinitely.
The fix (commit 8873814bec8288e2466fad4d2c4d64039beb88b0, PR #12751) introduces two caps — maxStanzaSize (10 MB) and maxElementCount (100000) — and applies them to both parser implementations in domish.py:
ExpatElementStream (the expat-based parser): the byte-size accounting is added in parse(), and the element-count check is added in _onStartElement.
SuxElementStream (the pure-Python fallback): the byte-size accounting is added in parse(), and the element-count check is added in gotTagStart.
The vulnerable functions are exactly those that the patch modified to add the missing limits, because in the vulnerable version (<= 26.4.0) they performed the unbounded allocation/parsing without any cap. The _onStartElement/gotTagStart handlers are where each element is appended to the current element's children and the parser descends into it (the unbounded tree growth), and parse() is where raw bytes are fed to the parser with no size limit. These are the functions that would appear in a runtime profile/stack trace during exploitation, as the attacker streams child elements continuously.