{"id":"PYSEC-2024-37","details":"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.","aliases":["CVE-2024-21624","GHSA-59j8-776v-xxxg"],"modified":"2024-02-16T16:56:23.358841Z","published":"2024-02-09T23:15:00Z","references":[{"type":"ADVISORY","url":"https://github.com/nonebot/nonebot2/security/advisories/GHSA-59j8-776v-xxxg"},{"type":"FIX","url":"https://github.com/nonebot/nonebot2/pull/2509"}],"affected":[{"package":{"name":"nonebot2","ecosystem":"PyPI","purl":"pkg:pypi/nonebot2"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.1"},{"fixed":"2.2.0"}]}],"versions":["2.0.1","2.1.0","2.1.1","2.1.2","2.1.3"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/nonebot2/PYSEC-2024-37.yaml"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"}]}