Improper Input Validation Affecting datahihi1/tiny-env package, versions >=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.03% (8th 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 Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-DATAHIHI1TINYENV-12671217
  • published15 Sept 2025
  • disclosed9 Sept 2025
  • creditUnknown

Introduced: 9 Sep 2025

NewCVE-2025-58759  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade datahihi1/tiny-env to version 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 Input Validation in the parsing of environment variable values. An attacker can cause applications to process unintended characters or comment text by including inline comments in .env values, potentially leading to logic errors, insecure defaults, or failed authentication.

Workaround

This vulnerability can be mitigated by avoiding the use of inline comments in .env files or manually sanitizing loaded values.

References

CVSS Base Scores

version 4.0
version 3.1