Improper Check or Handling of Exceptional Conditions Affecting datahihi1/tiny-env package, versions <1.0.3>=1.0.9, <1.0.11


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-DATAHIHI1TINYENV-12671216
  • published15 Sept 2025
  • disclosed9 Sept 2025
  • creditUnknown

Introduced: 9 Sep 2025

NewCVE-2025-58758  (opens in a new tab)
CWE-703  (opens in a new tab)

How to fix?

Upgrade datahihi1/tiny-env to version 1.0.3, 1.0.11 or higher.

Overview

datahihi1/tiny-env is a simple environment variable loader for PHP applications

Affected versions of this package are vulnerable to Improper Check or Handling of Exceptional Conditions due to the loading of environment variables without requiring the .env file to exist. An attacker can cause the application to operate with insecure defaults or misconfigurations by ensuring the absence of the .env file.

Workaround

This vulnerability can be mitigated by manually verifying the existence of the .env file before initialization.

References

CVSS Base Scores

version 4.0
version 3.1