# CVE-2026-54635: pytonapi has a Webhook Custom Path Authentication Bypass

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-28T17:09:02.000Z
- Modified: 2026-10-23T23:10:00.157Z
- Also known as: GHSA-3fcr-jvgp-7f58, PYSEC-2026-3614
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- nessshon tonapi: >= 2.0.0, < 2.2.1
- pytonapi (PyPI): from 2.0.0 before 2.2.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/nessshon/tonapi/security/advisories/GHSA-3fcr-jvgp-7f58> (exploit, web)
- <https://github.com/nessshon/tonapi/commit/854222b7ee68d3fb7b4d6d899d200f388483bd86> (web)
- <https://github.com/nessshon/tonapi/releases/tag/v2.2.1> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pytonapi/PYSEC-2026-3614.yaml> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54635> (advisory)
- <https://github.com/nessshon/tonapi> (package)
- <https://pypi.org/project/pytonapi> (package)
- <https://github.com/advisories/GHSA-3fcr-jvgp-7f58> (advisory)

## Sources

- CVE List: [CVE-2026-54635](https://www.cve.org/CVERecord?id=CVE-2026-54635), CVE Terms of Use, modified 2026-08-11
- GitHub Advisory Database: [GHSA-3fcr-jvgp-7f58](https://github.com/advisories/GHSA-3fcr-jvgp-7f58), CC-BY-4.0, modified 2026-08-11
- NVD: [CVE-2026-54635](https://nvd.nist.gov/vuln/detail/CVE-2026-54635), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-3614](https://osv.dev/vulnerability/PYSEC-2026-3614), CC-BY-4.0, modified 2026-08-04

---

Page: https://cve.day/CVE-2026-54635 · Whole record: https://cve.day/CVE-2026-54635.json · Rebuilt by cve.day 2026-11-25T22:59:30.358Z
