{"id":"CVE-2026-54635","published":"2026-07-28T17:09:08Z","modified":"2026-08-11T22:11:09Z","title":"pytonapi has a Webhook Custom Path Authentication Bypass","vendor":"nessshon","product":"tonapi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00709,"percentile":0.49185,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/nessshon/tonapi/security/advisories/GHSA-3fcr-jvgp-7f58","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nessshon/tonapi/commit/854222b7ee68d3fb7b4d6d899d200f388483bd86","tags":["x_refsource_MISC"]},{"url":"https://github.com/nessshon/tonapi/releases/tag/v2.2.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pytonapi/PYSEC-2026-3614.yaml","tags":["x_refsource_MISC"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":9.84},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"nessshon","affectedVersions":[{"vendor":"nessshon","product":"tonapi","versions":[">= 2.0.0, < 2.2.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-28T17:29:49.265991Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pytonapi","vulnerableRanges":[">=2.0.0, <2.2.1"],"patched":["2.2.1"],"from":["GHSA-3fcr-jvgp-7f58","PYSEC-2026-3614"],"provenance":"source"}],"summary":{"text":"The pytonapi Python SDK (nessshon/tonapi) contains an authentication bypass in its TonapiWebhookDispatcher component: when a webhook handler is registered with a custom path argument, the Authorization header is not validated because the custom path never receives a stored bearer token. An unauthenticated remote attacker with network access can send forged POST payloads to that custom webhook endpoint without any credentials or user interaction, causing the victim's registered handlers to run.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:31Z"},"euvd":{"id":"EUVD-2026-49907","exploited":false,"provenance":"source"}}