CVE-2026-54635 Details
Description
pytonapi is a Python SDK for TONAPI that provides REST API, streaming, and webhook access to the TON blockchain. From 2.0.0 to 2.2.0, TonapiWebhookDispatcher fails to validate the Authorization header when a webhook handler is registered with the documented path argument, because setup() stores bearer tokens only under the default suffix paths and never adds the custom path to the token map, so self._tokens.get(path) returns None and the authentication guard is skipped. An unauthenticated remote attacker can POST forged payloads to the custom webhook endpoint and trigger victim-defined handlers. This issue is fixed in version 2.2.1.
A vulnerability exists in the pytonapi library, specifically in versions 2.0.0 prior to 2.2.1, within the TonapiWebhookDispatcher component. The issue arises because the dispatcher fails to properly validate the Authorization header for webhooks registered with custom path arguments. Instead, it only stores bearer tokens for default suffix paths. As a result, when a webhook handler is set up with a custom path, the authentication check is bypassed, allowing unauthenticated remote attackers to send forged payloads to the webhook endpoint and trigger associated handlers.
Users can upgrade to pytonapi version 2.2.1, which addresses this vulnerability by ensuring that custom paths are properly registered and authenticated.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 28, 2026CISA-ADP
Assessed Jul 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nessshon/tonapi/security/advisories/GHSA-3fcr-jvgp-7f58 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/nessshon/tonapi/commit/854222b7ee68d3fb7b4d6d899d200f388483bd86 | [email protected] | Source CodeVendor |
| https://github.com/nessshon/tonapi/releases/tag/v2.2.1 | [email protected] | Release NotesVendor |
| https://github.com/nessshon/tonapi/security/advisories/GHSA-3fcr-jvgp-7f58 | [email protected] | AdvisoryExploitRemedyVendor |
| https://github.com/pypa/advisory-database/tree/main/vulns/pytonapi/PYSEC-2026-3614.yaml | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-287 | Improper Authentication | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nessshon pytonapi | >= 2.0.0, < 2.2.1 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 11, 2026 | CVE Modified | [email protected] |
| Jul 28, 2026 | New CVE Received | [email protected] |
| Jul 28, 2026 | CVE Modified | CISA-ADP |
Volerion