Vulnerabilities in pkg:pypi/aiosend
PACKAGECVE-2026-70646 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting aiosend libraries in the PyPI ecosystem. The issue involves deserialization of request body before signature verification (pre-auth dos) in webhook handler. Remediation is available by upgrading affected packages to version 3.0.7.
pkg:pypi/aiosend
Vulnerability advisories affecting package pkg:pypi/aiosend. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7m8f-hgjq-8gc9 | CVE-2026-70646 | HIGH | aiosend: Deserialization of request body before signature verification (Pre-auth DoS) in webhook handler |
CVE-2026-70646 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-70646
To remediate this vulnerability, upgrade all affected aiosend dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install aiosend>=3.0.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show aiosend
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-70646, inspect your installed packages using pip:
pip show aiosend
Analyze the terminal output to locate any version of aiosend in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.7), your application is affected.
Note: The pip show aiosend command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In aiosend, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-70646 Affected aiosend Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aiosend
|
PyPI |
< 3.0.7
|
3.0.7
|
References
Frequently Asked Questions
What is CVE-2026-70646?
Which aiosend versions are affected?
What version fixes CVE-2026-70646?
Is aiosend affected?
What is the CVSS score of CVE-2026-70646?
What CWE is associated with CVE-2026-70646?
How can I check PyPI dependencies for CVE-2026-70646?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7m8f-hgjq-8gc9",
"modified" : "2026-08-06T14:38:20Z",
"published" : "2026-05-22T17:27:56Z",
"aliases" : [ "CVE-2026-70646" ],
"summary" : "aiosend: Deserialization of request body before signature verification (Pre-auth DoS) in webhook handler",
"details" : "## Summary\n\n`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.\n\n## Severity\n\n**High** (CVSS 7.5)\n\n```\nCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H\n```\n\n## Affected Package\n\n- Ecosystem: PyPI\n- Package: `aiosend`\n\n## Affected Versions\n\n- `< 3.0.6`\n\n## Patched Versions\n\n- `>= 3.0.6`\n\n## Details\n\nIn `aiosend/webhook/base.py`, `WebhookHandler.feed_update()` performs full Pydantic deserialization before validating the webhook signature:\n\n```python\nupdate = Update.model_validate(body, context={\"client\": self})\nif not self._check_signature(body, headers):\n return False\n```\n\nBecause 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.\n\nAdditionally, `CryptoPayObject` is configured with:\n\n```python\nConfigDict(extra=\"allow\")\n```\n\nallowing arbitrary extra fields to be retained in memory, increasing resource consumption.\n\n## Impact\n\nAn unauthenticated attacker can repeatedly send large invalid webhook requests, forcing the server to consume CPU time and memory before rejecting them.\n\nThis results in a pre-authentication denial-of-service condition affecting all webhook integrations.\n\n## Affected Components\n\n- `aiosend/webhook/base.py`\n- `aiosend/types/base.py`\n- `AiohttpManager`\n- `FastAPIManager`\n- `FlaskManager`\n\n## Workarounds\n\nUntil upgrading:\n\n- Restrict request body size at the reverse proxy or web framework.\n- Rate-limit webhook endpoints.\n- Reject oversized requests before JSON parsing.\n\n## Solution\n\nUpgrade to **aiosend 3.0.6** or later.\n\n## CWE\n\n- CWE-400: Uncontrolled Resource Consumption",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "aiosend"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/vovchic17/aiosend/security/advisories/GHSA-7m8f-hgjq-8gc9"
}, {
"type" : "WEB",
"url" : "https://github.com/vovchic17/aiosend/commit/db20f0a742209dfac181863d398ec5112687efa4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/vovchic17/aiosend"
}, {
"type" : "WEB",
"url" : "https://github.com/vovchic17/aiosend/releases/tag/v3.0.7"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-22T17:27:56Z",
"nvd_published_at" : null
}
}