The dnslib package through 0.9.16 for Python does not verify that the ID value in a DNS reply matches an ID value in a query.
"https://github.com/pypa/advisory-database/blob/main/vulns/dnslib/PYSEC-2022-4.yaml"