HIGHCVSS v4 8.7Vulnerability

CVE-2026-115775

## Summary An allocation-without-limits vulnerability in the Twisted XML element stream lets any unauthenticated remote peer exhaust server memory over a single stream. When the peer opens a container element and streams child elements without ever closing the container, every element is materialised into an in-memory tree with no limit on depth or child count. An element is released only when its end tag arrives, so a container the attacker never closes retains everything beneath it until the process is killed. ## Details In `ExpatElementStream._onStartElement`, each start tag appends a new element to the current element's children and descends into it, with no depth or child-count check: ```python # src/twisted/words/xish/domish.py (ExpatElementStream._onStartElement) if self.documentStarted == 1: if self.currElem != None: self.currElem.children.append(e) # append child: no depth/count cap e.parent = self.currElem self.currElem = e # descend into the new element ``` An element is emitted and dropped only when its end tag arrives while it sits directly under the document root, so a container that is never closed keeps every child beneath it. The transport `XmlStream.dataReceived` feeds bytes to `self.stream.parse(data)` with no size limit, and in XMPP the stream is parsed during negotiation before authentication. Affected product: Twisted, `twisted.words.xish.domish` element stream Affected versions: confirmed against 26.4.0 ## PoC On any endpoint that parses untrusted XML streams with this stack, such as an XMPP server, open a stream by sending the opening `stream:stream` tag and a container element, then stream child elements continuously and never send the container's closing tag. No credentials are required, because in XMPP the stream is parsed before authentication. Every child is appended to the container and retained because the container is never emitted, and the transport applies no limit on the size

Properties

Summary
Twisted: Unauthenticated Remote Denial of Service in the Twisted words domish XML Element Stream via an Unbounded Element Tree
Severity
high
Nvd fetched at
2026-10-23T22:30:12.098505+00:00
Cvss score
8.7
Cvss severity
HIGH
Retrieved at
2026-10-23T22:32:28+00:00
Ghsa published
2026-10-23T20:45:04Z
Source url
https://github.com/advisories/GHSA-3476-c5c2-fr73
Ghsa updated
2026-10-23T20:45:05Z
Ghsa id
GHSA-3476-c5c2-fr73
Last source
GitHub Advisory Database
Score
8.7
Cvss version
4.0
Cve id
CVE-2026-115775
Cvss vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
First seen by Signal
2026-10-23T22:32:25+00:00
Is ghsa only
false
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published at
2026-10-23T21:17:23.050
Last modified
2026-10-23T21:17:23.050

Related Entities (4)

AFFECTS (1)

→[Software]pip/Twisted

VULNERABLE_TO (1)

←[Software]pip/Twisted

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-115775 (CVSS v4 8.7) — Ninja Signal Threat Intelligence | Ninja Signal