Description
TinyEnv is an environment variable loader for PHP applications. In versions 1.0.9 and 1.0.10, TinyEnv did not properly strip inline comments inside .env values. This could lead to unexpected behavior or misconfiguration, where variables contain unintended characters (including # or comment text). Applications depending on strict environment values may expose logic errors, insecure defaults, or failed authentication. The issue is fixed in v1.0.11. Users should upgrade to the latest patched version. As a temporary workaround, avoid using inline comments in .env files, or sanitize loaded values manually.
References (1)
Core 1
Core References
Vendor Advisory x_refsource_confirm
https://github.com/datahihi1/tiny-env/security/advisories/GHSA-72cm-7236-h43r
Scores
CVSS v3
5.1
EPSS
0.0019
EPSS Percentile
9.2%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-20
Status
published
Products (2)
datahihi1/tiny-env
1.0.9 - 1.0.11Packagist
datahihi1/tinyenv
1.0.9 - 1.0.11
Published
Sep 09, 2025
Tracked Since
Feb 18, 2026