# PYSEC-2023-1: Adyen has utility methods for validating notification HMAC signatures

- Database: PyPA
- Published: 2023-01-24
- Modified: 2023-01-24

## Affected versions

- adyen (PyPI): from 2.2.0, fixed in 7.1.0

## Description

Adyen has utility methods for validating notification HMAC signatures. The is_valid_hmac and is_valid_hmac_notification methods are vulnerable to a timing attack, you should compare the hash of the HMACs instead.

## References

- https://github.com/Adyen/adyen-python-api-library/issues/168
- https://github.com/Adyen/adyen-python-api-library/pull/170

Page: https://cve.now/PYSEC-2023-1

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
