Adyen has utility methods for validating notification HMAC signatures. The isvalidhmac and isvalidhmac_notification methods are vulnerable to a timing attack, you should compare the hash of the HMACs instead.
"https://github.com/pypa/advisory-database/blob/main/vulns/adyen/PYSEC-2023-1.yaml"