| Version | Supported |
|---|---|
| 1.0.x | ✅ |
| < 1.0 | ❌ |
If you discover a security vulnerability in tmpkit, please report it responsibly.
- Do NOT open a public GitHub issue.
- Email mathias.paulenko@outlook.com with a description of the vulnerability and, if possible, a proof of concept.
- You will receive an acknowledgment within 48 hours.
- We will investigate and, if confirmed, release a fix as soon as possible depending on severity.
- We follow coordinated disclosure.
- A CVE may be requested for significant vulnerabilities.
- Credit will be given to the reporter (unless they prefer to remain anonymous).
tmpkit is a zero-dependency library that wraps Python's tempfile module. The main security considerations are:
- Temp file permissions: Uses
tempfile.mkstemp()which creates files with restrictive permissions (0600 on Unix). - Symlink attacks: Uses
shutil.rmtree()for directory cleanup. On Python 3.11+, this is protected against symlink attacks by default. - Path traversal: Temp paths are generated by the stdlib and are not user-controlled beyond
suffix,prefix, anddirparameters. If you pass a user-controlleddir, validate it.