GHSA-59j8-776v-xxxg

Suggest an improvement
Source
https://github.com/advisories/GHSA-59j8-776v-xxxg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-59j8-776v-xxxg/GHSA-59j8-776v-xxxg.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-59j8-776v-xxxg
Aliases
Published
2024-02-09T15:04:08Z
Modified
2024-02-16T23:02:53.482936Z
Severity
  • 5.7 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
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

Database specific
{
    "nvd_published_at": "2024-02-09T23:15:08Z",
    "cwe_ids": [
        "CWE-1336",
        "CWE-200"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-02-09T15:04:08Z"
}
References

Affected packages

PyPI / nonebot2

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0a16
Fixed
2.2.0

Affected versions

2.*

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.0
2.0.1
2.1.0
2.1.1
2.1.2
2.1.3

Database specific

{
    "last_known_affected_version_range": "<= 2.1.3"
}