quick-xml < 0.41.0: `NsReader` calls `NamespaceResolver::push` before returning each Start/Empty event; push allocated one binding per xmlns declaration with no upper bound (~3x the tag's byte size), invisible to the caller. On untrusted XML, and with concurrent readers, this exhausts process memory (OOM). Fixed in 0.41.0 (tafia/quick-xml@7ca2526).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
quick-xml < 0.41.0: the default duplicate-attribute-name check in the `Attributes` iterator scanned all previously seen names for every attribute, so a start tag with N distinct names cost O(N^2) byte comparisons -- a remote, unauthenticated CPU-exhaustion DoS on untrusted XML. Fixed in 0.41.0 (tafia/quick-xml#971).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>