Issue is with the python bindings so I would guess USE=-python is unaffected. We IUSE=+python so it's on by default. Fixed in upstream 2.13.8 and 2.14.2, and they've said older branches won't get updates (we have 2.11.x and 2.12.x as well as 2.13.x). Note also, upstream has said they plan to deprecate the python bindings: https://gitlab.gnome.org/GNOME/libxml2/-/issues/891 It seems we don't have many packages that depend on dev-libs/libxml2[python]: gimp-help, virt-manager, recoll, itstool - the latter of which has a WIP PR to migrate from libxml2 to lxml.
Per upstream announcement https://discourse.gnome.org/t/libxml2-2-13-8-released/28428 , also fixes a heap overflow (that has some prereqs to exploit), CVE-2025-32415: https://gitlab.gnome.org/GNOME/libxml2/-/issues/890