GHSA-59j8-776v-xxxg

    Dashboard / Vulnerabilities / GHSA-59j8-776v-xxxg

    GHSA-59j8-776v-xxxg

    Published: 9 Feb 2024Last Modified: 10 Sept 2026

    Summary: NoneBot Potential Information Leak in User-Constructed Message Templates

    Details: ### Impact 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. ### Patches The identified vulnerability has been remedied in fix #2509 and will be included in versions released after 2.1.3. Users are strongly advised to upgrade to these patched versions to safeguard against the vulnerability. ### Workarounds A temporary workaround involves filtering underscores before incorporating user input into the message template. ### References - [Pull Request #2509](https://github.com/nonebot/nonebot2/pull/2509) - [CWE-1336](https://cwe.mitre.org/data/definitions/1336.html)

    Affected packages

    Package

    Name: nonebot2

    Purl: pkg:pypi/nonebot2

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 2.0.0a16
    Fixed -2.2.0

    Affected versions

    2.0.0
    2.0.0a16
    2.0.0b1
    2.0.0b2
    2.0.0b3
    2.0.0b4
    2.0.0b5
    2.0.0rc1
    2.0.0rc2
    2.0.0rc3
    2.0.0rc4
    2.0.1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High