CVE-2026-54635
Full vulnerability record from the local CVENow database.
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.
Severity
HIGH
CVSS score
7.5
(v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-07-28 18:17:22.427000
Last modified
2026-10-23 23:10:00.157000
View original CVE JSON
{
"id": "CVE-2026-54635",
"sourceIdentifier": "[email protected]",
"published": "2026-07-28T18:17:22.427",
"lastModified": "2026-10-23T23:10:00.157",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "pytonapi es un SDK de Python para TONAPI que proporciona API REST, streaming y acceso a webhooks a la cadena de bloques TON. De 2.0.0 a 2.2.0, TonapiWebhookDispatcher no valida el encabezado de autorización cuando un gestor de webhook se registra con el argumento de ruta documentado, porque setup() almacena tokens de portador solo bajo las rutas de sufijo predeterminadas y nunca añade la ruta personalizada al mapa de tokens, por lo que self._tokens.get(path) devuelve None y la protección de autenticación se omite. Un atacante remoto no autenticado puede enviar cargas útiles falsificadas al punto final de webhook personalizado y activar gestores definidos por la víctima. Este problema se corrige en la versión 2.2.1."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "nessshon",
"product": "tonapi",
"versions": [
{
"version": ">= 2.0.0, < 2.2.1",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-28T17:29:49.265991Z",
"id": "CVE-2026-54635",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-287"
}
]
}
],
"references": [
{
"url": "https://github.com/nessshon/tonapi/commit/854222b7ee68d3fb7b4d6d899d200f388483bd86",
"source": "[email protected]"
},
{
"url": "https://github.com/nessshon/tonapi/releases/tag/v2.2.1",
"source": "[email protected]"
},
{
"url": "https://github.com/nessshon/tonapi/security/advisories/GHSA-3fcr-jvgp-7f58",
"source": "[email protected]"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/pytonapi/PYSEC-2026-3614.yaml",
"source": "[email protected]"
},
{
"url": "https://github.com/nessshon/tonapi/security/advisories/GHSA-3fcr-jvgp-7f58",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
]
}