Vulnerabilities in pkg:pypi/aiosend

PACKAGE
Advisory Identifier: GHSA-7m8f-hgjq-8gc9
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/aiosend

1 Known Advisory Record(s)

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

CVE Identifier CVE-2026-70646
GHSA Identifier GHSA-7m8f-hgjq-8gc9
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product aiosend
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

aiosend fixed: 3.0.7
pip install aiosend>=3.0.7
Verify Direct and Transitive Dependencies

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

## 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: ```python 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: ```python 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.py` - `aiosend/types/base.py` - `AiohttpManager` - `FastAPIManager` - `FlaskManager` ## 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

CVE-2026-70646 Affected aiosend Versions

1 component(s)
Fixed Versions:
3.0.7
Product / Package Ecosystem Affected Versions Fixed Version
aiosend
PyPI
< 3.0.7
3.0.7

References

Frequently Asked Questions

What is CVE-2026-70646?
CVE-2026-70646 is a security vulnerability in aiosend involving Deserialization of request body before signature verification (Pre-auth DoS) in webhook handler under CWE-400: Uncontrolled Resource Consumption.
Which aiosend versions are affected?
Affected versions include releases prior to 3.0.7 across affected packages: aiosend.
What version fixes CVE-2026-70646?
Upgrading to 3.0.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aiosend affected?
Yes, aiosend is affected in releases prior to 3.0.7. Upgrade your dependency to 3.0.7 or later.
What is the CVSS score of CVE-2026-70646?
CVE-2026-70646 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-70646?
CVE-2026-70646 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check PyPI dependencies for CVE-2026-70646?
Run the dependency tree command: 'pip show aiosend'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}