TinyEnv did not require the .env file to exist when loading environment variables. This could lead to unexpected behavior where the application silently ignores missing configuration, potentially causing insecure defaults or deployment misconfigurations.
Affected versions:
1.0.1 → 1.0.2
1.0.9 → 1.0.10
// patches
The issue has been fixed in version 1.0.11. All users should upgrade to 1.0.11 or later.
// workarounds
As a workaround, users can manually verify the existence of the .env file before initializing TinyEnv, for example:
if (!file_exists(__DIR__ . '/.env')) {
throw new RuntimeException('.env file is missing!');
}
// cvss v3.1 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
Checked 2026-11-07 at 21:51 UTC. The most recent advisory here was published 2025-09-09. Updated continuously from NVD, GHSA, OSV and CNA feeds.