CVE-2024-21624: nonebot2 is a cross-platform Python asynchronous chatbot framework written in Python
CVE-2024-21624 is a medium-severity flaw (CVSS 5.7) affecting nonebot. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.7 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | Required |
| EPSS exploit chance | 0.5% (top 58%) |
| CISA exploited list | No |
| Weakness | CWE-200 |
| Published | 2024-02-09 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-21624?
nonebot: upgrade to 2.2.0. Exact commands for each OS are on this page.
Is CVE-2024-21624 being exploited?
CVE-2024-21624 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-21624 affect?
CVE-2024-21624 affects nonebot. Severity is medium (CVSS 5.7). 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
How urgent is CVE-2024-21624?
Priority 30/100. No elevated risk signals yet.