aiosend: Deserialization of request body before signature verification (Pre-auth DoS) in webhook handler
Summary
WebhookHandler.feed_update() deserializes the entire request body before verifying the HMAC signature. This allows an unauthenticated attacker to force expensive parsing of arbitrary JSON payloads that will ultimately be rejected, leading to unnecessary CPU and memory consumption.
Severity
High (CVSS 7.5)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected Package
- Ecosystem: PyPI
- Package:
aiosend
Affected Versions
< 3.0.6
Patched Versions
>= 3.0.6
Details
In aiosend/webhook/base.py, WebhookHandler.feed_update() performs full Pydantic deserialization before validating the webhook signature:
update = Update.model_validate(body, context={"client": self})
if not self._check_signature(body, headers):
return False
Because authentication occurs only after parsing, anyone can send arbitrarily large JSON payloads with an invalid signature. Although the request is rejected, the server still performs all parsing work.
Additionally, CryptoPayObject is configured with:
ConfigDict(extra="allow")
allowing arbitrary extra fields to be retained in memory, increasing resource consumption.
Impact
An unauthenticated attacker can repeatedly send large invalid webhook requests, forcing the server to consume CPU time and memory before rejecting them.
This results in a pre-authentication denial-of-service condition affecting all webhook integrations.
Affected Components
aiosend/webhook/base.pyaiosend/types/base.pyAiohttpManagerFastAPIManagerFlaskManager
Workarounds
Until upgrading:
- Restrict request body size at the reverse proxy or web framework.
- Rate-limit webhook endpoints.
- Reject oversized requests before JSON parsing.
Solution
Upgrade to aiosend 3.0.6 or later.
CWE
- CWE-400: Uncontrolled Resource Consumption
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Python (PyPI) | aiosend | < 3.0.7 | 3.0.7 |
Referencias
- https://github.com/vovchic17/aiosend/security/advisories/GHSA-7m8f-hgjq-8gc9
- https://github.com/vovchic17/aiosend/commit/db20f0a742209dfac181863d398ec5112687efa4
- https://github.com/vovchic17/aiosend
- https://github.com/vovchic17/aiosend/releases/tag/v3.0.7
- https://pypi.org/project/aiosend
- https://github.com/advisories/GHSA-7m8f-hgjq-8gc9
- https://nvd.nist.gov/vuln/detail/CVE-2026-70646
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Debilidad (CWE)
CWE-400- Plataforma
- Python (PyPI)
- Paquete
aiosend- Publicada
- 22.05.2026
- Actualizado
- 11.10.2026 14:19
Fuentes y licencias
OSV / GitHub Advisory Database - PYSEC-2026-3626 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-7m8f-hgjq-8gc9 - CC BY 4.0
Historial de vulnerabilidades: aiosend
Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
Esta es la única vulnerabilidad conocida de este paquete.
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.