Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. nonebot2
  4. ›
  5. CVE-2024-21624

CVE-2024-21624: Exposure of Sensitive Information to an Unauthorized Actor

February 9, 2024

nonebot2 is a cross-platform Python asynchronous chatbot framework written in Python. This security advisory pertains to a potential information leak (e.g., environment variables) in instances where developers utilize MessageTemplate and incorporate user-provided data into templates. The identified vulnerability has been remedied in pull request #2509 and will be included in versions released from 2.2.0. Users are strongly advised to upgrade to these patched versions to safeguard against the vulnerability. A temporary workaround involves filtering underscores before incorporating user input into the message template.

References

  • github.com/advisories/GHSA-59j8-776v-xxxg
  • github.com/nonebot/nonebot2/commit/b65b3b438c95894654fd9081139989c757bdc6c1
  • github.com/nonebot/nonebot2/pull/2509
  • github.com/nonebot/nonebot2/security/advisories/GHSA-59j8-776v-xxxg

Code Behaviors & Features

Detect and mitigate CVE-2024-21624 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.0.0a16 up to 2.1.3

Fixed versions

  • 2.2.0

Solution

Upgrade to version 2.2.0 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

pypi/nonebot2/CVE-2024-21624.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:16 +0000.