CVE-2026-54635nessshon tonapi
High 7.5 No auth needed
Follow: this CVE · nessshon · nessshon tonapi We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Jul 28, 2026
- Updated
- Oct 23, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-287
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for tonapi.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pytonapi |
≥ 2.0.0 < 2.2.1 |
2.2.1 |
pip install "pytonapi>=2.2.1" |
| PyPI | pytonapi |
≥ 2.0.0 < 2.2.1 |
2.2.1 |
pip install "pytonapi>=2.2.1" |
Per OSV / GitHub Advisories (GHSA-3fcr-jvgp-7f58, PYSEC-2026-3614). Check the version in your lockfile before upgrading.
Affected products
- nessshon · tonapi
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.