Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. aiosend
  4. ›
  5. GHSA-7m8f-hgjq-8gc9

GHSA-7m8f-hgjq-8gc9: aiosend: Deserialization of request body before signature verification (Pre-auth DoS) in webhook handler

May 22, 2026

Vulnerability Description

In aiosend/webhook/base.py, the WebhookHandler.feed_update() method performs full deserialization of the incoming JSON via Pydantic before verifying the HMAC signature. Anyone can send a request with an arbitrary body — the server will parse it, spend CPU and memory, and only then reject it.

Vulnerable Code

# aiosend/webhook/base.py — feed_update()
update = Update.model_validate(body, context={"client": self})  #  parsing — always
if not self._check_signature(body, headers):                    #  auth — too late
    return False

Additional aggravating factor: CryptoPayObject is declared with ConfigDict(extra="allow") — all arbitrary fields from the body are stored in memory without any limits.

Minimal PoC

Requests with deliberately invalid signatures (zero credentials):

extra_fieldsbody_sizeparse_timestatus
0336 B26 µs403 REJECTED
1,00082 KB257 µs403 REJECTED
5,000410 KB1,183 µs403 REJECTED
10,000820 KB2,552 µs403 REJECTED
10,000 (×512B)5.3 MB7,490 µs403 REJECTED

All requests were rejected — but the server already performed parsing for each one. 10 parallel threads with 5 MB bodies = >75 ms of CPU spent on requests that will never be authorized.

Affected Components

  • aiosend/webhook/base.py — WebhookHandler.feed_update()
  • aiosend/types/base.py — CryptoPayObject (extra="allow")
  • All adapters: AiohttpManager, FastAPIManager, FlaskManager

Exploitation Conditions

  • Attacker: anyone with network access to the webhook endpoint
  • Authentication: not required
  • Body size limit: absent at the library level (Flask and FastAPI have no default limit)

The advisory was translated using Copilot.

References

  • github.com/advisories/GHSA-7m8f-hgjq-8gc9
  • github.com/vovchic17/aiosend/security/advisories/GHSA-7m8f-hgjq-8gc9

Code Behaviors & Features

Detect and mitigate GHSA-7m8f-hgjq-8gc9 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.0.6

Fixed versions

  • 3.0.6

Solution

Upgrade to version 3.0.6 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/aiosend/GHSA-7m8f-hgjq-8gc9.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:00 +0000.