CVE-2024-21624Nonebot
Medium 6.5 No auth needed
Follow: this CVE · Nonebot · Nonebot We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 49
- Auth required
- No
- Published
- Feb 9, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-200
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Nonebot.
- 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 | nonebot2 |
≥ 2.0.0a16 < 2.2.0 |
2.2.0 |
pip install "nonebot2>=2.2.0" |
| PyPI | nonebot2 |
≥ 2.0.1 < 2.2.0 |
2.2.0 |
pip install "nonebot2>=2.2.0" |
Per OSV / GitHub Advisories (GHSA-59j8-776v-xxxg, PYSEC-2024-37). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nonebot | nonebot | ≥ 2.0.1 < 2.2.0 |
| nonebot | nonebot | 2.0.0 |
| nonebot | nonebot | 2.0.0 |
| nonebot | nonebot | 2.0.0 |
| nonebot | nonebot | 2.0.0 |
| nonebot | nonebot | 2.0.0 |
| nonebot | nonebot | 2.0.0 |
| nonebot | nonebot | 2.0.0 |
| nonebot | nonebot | 2.0.0 |
| nonebot | nonebot | 2.0.0 |
| nonebot | nonebot | 2.0.0 |
| nonebot | nonebot | 2.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking Patch
- github.com Vendor Advisory