Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
NoneBot (nonebot2) versions 2.0.0a16 up to 2.2.0 are affected. When developers put user-provided data into a MessageTemplate, an attacker can cause an information leak, such as environment variables. Upgrade nonebot2 to 2.2.0 or later. As a temporary workaround, filter underscores from user input before adding it to the message template.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 5.7 | Medium | 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0049, the 42nd percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:36 UTC First seen by agentprime
- 31 Oct 2026, 14:36 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-59j8-776v-xxxg
- OSV: GHSA-59j8-776v-xxxg
- github.com/nonebot/nonebot2/security/advisories/GHSA-59j8-776v-xxxg
- nvd.nist.gov/vuln/detail/CVE-2024-21624
- github.com/nonebot/nonebot2/pull/2509
- github.com/nonebot/nonebot2/commit/b65b3b438c95894654fd9081139989c757bdc6c1
- github.com/nonebot/nonebot2
- github.com/pypa/advisory-database/tree/main/vulns/nonebot2/PYSEC-2024-37.yaml