Use-after-free in Lxml - #VU170751
Published: November 27, 2026
Vulnerability details
The vulnerability allows a remote attacker to corrupt memory and potentially influence control flow in certain XMLSec/XSLT integrations.
The vulnerability exists due to use of an uninitialized pointer in libxml2's xmlXPathLangFunction when the XPath context node is null, which can lead to an invalid free and use-after-free. A remote attacker can supply input to a consuming application that exposes the vulnerable XPath evaluation path to trigger memory corruption.