NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2025-58759: TinyEnv: Inline comments not stripped properly in .env values

mediumCVSS 3.1 5.1GHSA-72cm-7236-h43r

Impact 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. Patches Fixed in v1.0.11. Users should upgrade to the latest patched version.

Published Sep 9, 2025 · Updated Sep 10, 2025

Affected packages

datahihi1/tiny-env

Ecosystem
Composer (PHP)
Affected
>= 1.0.9, < 1.0.11
Fixed in
1.0.11
Check
composer show datahihi1/tiny-env

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

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.

Patches

Fixed in v1.0.11. Users should upgrade to the latest patched version.

Workarounds

As a temporary workaround, avoid using inline comments in .env files, or sanitize loaded values manually.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries