The latest released minor version receives security fixes.
| Version | Supported |
|---|---|
| 2.x | ✅ |
| 1.x |
Please do not open a public issue for security vulnerabilities.
Instead, report privately via GitHub's security advisories. You can expect an initial response within a few days. Once a fix is available, a patched release will be published and the advisory disclosed.
This package is built to be safe by default:
- No override of real environment variables.
Loadnever overwrites variables already present in the process environment; overriding is the explicit, opt-inOverload. This prevents a stale or accidentally-present.envfrom clobbering securely-injected configuration (12-factor). - No code execution. Command substitution (
$(...)) and shell evaluation are never performed. - Resource limits. A configurable file-size cap (default 1 MiB) is enforced on the bytes actually read, protecting against memory-exhaustion from large or special files.
- Atomic application. A file is fully parsed before any variable is set, so malformed input never leaves a partially-applied environment.
- Side-effect-free parsing.
Parse/ParseBytesnever mutate global state, making it safe to inspect untrusted input.