dotenv

npm

Is dotenv safe to use?

The latest brin safety scan flagged dotenv v17.2.3 with risk indicators that warrant review. No known CVE vulnerabilities. Trust score: 75/100. Review the findings below before use. This is an automated assessment and may contain errors.

Install (safety-checked)

dotenv Has Warnings

Warnings detected due to potential concerns

warning
CVEs

0

Threats

0

Install Scripts

0

Risk Indicators

  • Can spawn child processes

brin Recommendations

  • This package has warnings detected. Evaluate the specific concerns before proceeding.

Install with brin add dotenv to automatically apply these checks before installation.

This is an automated, point-in-time assessment and may contain errors. Findings are risk indicators, not confirmed threats. Security posture may change over time. Maintainers can dispute findings via the brin review process.

dotenv Capabilities & Permissions

What dotenv can access when installed. Review these capabilities before using with AI agents like Cursor, Claude Code, or Codex.

Filesystem Access

Reads from the filesystem.

.env (r).env (r)package.json (r).env (r)

Process Spawning

This package can spawn child processes.

Environment Variables

Accesses the following environment variables.

DEBUGDOTENV_CONFIG_DEBUGDOTENV_CONFIG_DOTENV_KEYDOTENV_CONFIG_ENCODINGDOTENV_CONFIG_OVERRIDEDOTENV_CONFIG_PATHDOTENV_CONFIG_QUIETDOTENV_KEYTERM

AGENTS.md for dotenv

Good instructions lead to good results. brin adds dotenv documentation to your AGENTS.md so your agent knows how to use it properly—improving both safety and performance.

brin init

Vercel's research: 100% accuracy with AGENTS.md vs 53% without →

dotenv Documentation & Source Code

For the full dotenv README, API documentation, and source code, visit the official package registry.

Frequently asked questions about dotenv safety

Weekly Downloads

86.8M

Version

17.2.3

License

BSD-2-Clause

Last Scanned

Feb 1, 2026

Trust Score

75/100·Legitimacy signals, not safety

Capabilities

Filesystem

Reads files

Process

Spawns child processes

Environment

Accesses: DEBUG, DOTENV_CONFIG_DEBUG, DOTENV_CONFIG_DOTENV_KEY...

Is dotenv Safe? | npm Safety Scan - brin