Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@dotenvx/next-env

Latest version: v3.1.5

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: motdotenv, motdotla
5,862 Stars
160 Forks
37 Versions
18.6K Downloads
JavaScript Repo language

Scan summary

@dotenvx/next-env was last scanned on 23 Nov 2026 at version 3.1.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 37 versions; the latest 5 were published within 3 days (21–23 Nov 2026).
  • Findings: No rules fired in version 3.1.5.
  • Downloads: 18,560 downloads.

Versions

37 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.1.5 LATEST 23 Nov 2026 No rules fired
3.1.4 22 Nov 2026 No rules fired
3.1.3 22 Nov 2026 No rules fired
3.1.2 21 Nov 2026 Not shown
3.1.1 21 Nov 2026 Not shown

No rules fired in 3.1.5

Findings

Findings for v3.1.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.1.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

A secure dotenv–from the creator of dotenv.

  • Encrypt
  • Commit
  • Ship

Install · Quickstart · Dotenvx on GitHub

Quickstart

@dotenvx/next-env replaces Next.js’ @next/env loader. In your existing Next.js app, install it.

npm install @dotenvx/next-env@^3.0.0

Add the override to your app’s package.json.

{
  "overrides": {
    "@next/env": "npm:@dotenvx/next-env@^3.0.0"
  }
}

Run npm install again to apply the override.

.env

HELLO=World

app/api/hello/route.js

export function GET() {
  return new Response(`Hello ${process.env.HELLO}`)
}

Run npm run dev and open http://localhost:3000/api/hello to see Hello World.

  • Prebuilt Node addons are included for macOS arm64/x64, Linux glibc arm64/x64, and Windows x64.
  • Stored key lookup requires a compatible dotenvx CLI on PATH. Keys in process.env and .env.keys work without the CLI.
  • Armor Enclave server-side decryption is unavailable in v3.

Usage

Install the standalone dotenvx CLI on your PATH. The only dotenvx npm package your app needs is @dotenvx/next-env.

$ curl -sfS https://dotenvx.sh | sh
◈ installed (2.38.2:/usr/local/bin/dotenvx)

Encrypt your secrets in .env files. The values become ciphertext and only your private key can unlock them.

$ dotenvx encrypt
◈ encrypted .env (039 BCA) via .env.keys ⛉

Commit your encrypted .env files with your code. Keep .env.keys out of git. The -f flag adds the encrypted file when your Next.js project ignores it.

$ git add -f .env
$ git commit -m "encrypt .env"

Ship your code and secrets together. Dotenvx uses your private key to decrypt and inject your secrets just-in-time to your code.

$ npm run dev
⟐ injected env (2) from .env (039 BCA) via .env.keys ⛉

Set the matching private key, such as DOTENV_PRIVATE_KEY, in your deployment environment.

Design

Three widely used and proven primitives make up Dotenvx's design. Git, .env, and secp256k1.

We chose git because it is the best way to deliver digital goods. It is the container ship of the digital world. All code travels on its ships. Why not secrets? Why invent an inferior secrets delivery mechanism when the world class one is right there at your fingertips.

We chose .env because it is the open standard for loading secrets into code. It represents environment variables, the core primitive that all secrets end up injected into at runtime of code.

Lastly, we needed to choose an encryption algorithm. Encryption of the values inside the .env file would allow us to place those values with code, leveraging git's distribution advantages while still following the twelve-factor config – by separating the decryption key from the code (environment).

It was important that we choose a proven, simple, asymmetric standard with small keys. We chose secp256k1, battle-tested by Bitcoin for more than seventeen years. We made cryptography an opinionated choice so developers wouldn't have to. Encryption just worked.

The result is a system built entirely from primitives, developers already understand, and infrastructure they already use. Secrets can travel with code without becoming part of the code. Git distributes them, .env defines how apps consume them, and secp256k1 keeps their values unreadable. The kicker, all this works by setting a single private key on your infrastructure - no more risky async coordination of secrets, no more centralized downtime risk. Your secrets are always just there with your code, ready to be unlocked at runtime.

Read the whitepaper →

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @dotenvx/next-env

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229