Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pytonapi
  4. ›
  5. CVE-2026-54635

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

July 28, 2026

TonapiWebhookDispatcher in pytonapi 2.2.0 fails to validate the Authorization header when a webhook handler is registered with the documented path= argument. During setup(), bearer tokens are stored only under the default suffix paths (e.g., /hook/account-tx), but the custom path (e.g., /hook/custom) is never added to the token map. When an incoming request arrives at the custom path, self._tokens.get(path) returns None, causing the if expected_token is not None guard to evaluate to False and silently skip authentication entirely. An unauthenticated remote attacker can POST arbitrary forged payloads to the custom webhook endpoint and trigger victim-defined handlers with full integrity impact.

References

  • github.com/advisories/GHSA-3fcr-jvgp-7f58
  • github.com/nessshon/tonapi/commit/854222b7ee68d3fb7b4d6d899d200f388483bd86
  • github.com/nessshon/tonapi/releases/tag/v2.2.1
  • github.com/nessshon/tonapi/security/advisories/GHSA-3fcr-jvgp-7f58
  • nvd.nist.gov/vuln/detail/CVE-2026-54635

Code Behaviors & Features

Detect and mitigate CVE-2026-54635 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.2.1

Fixed versions

  • 2.2.1

Solution

Upgrade to version 2.2.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

pypi/pytonapi/CVE-2026-54635.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:29 +0000.