Skip to main content
UNPWNED
Netlify Security Guide
Q&ANetlify

Are Netlify environment variables safe?

Netlify environment variables are generally secure at runtime but can leak through several vectors. Build logs may expose variable values if your build process echoes them. Variables prefixed with certain framework conventions like NEXT_PUBLIC_ or VITE_ are bundled into client-side code and visible to anyone. Deploy previews and branch deploys share the same environment variables unless scoped, which can expose production secrets in preview deployments. Always scope sensitive variables to production only and never prefix secrets with client-side framework prefixes. UNPWNED checks client-accessible bundles and responses for supported exposed-secret and environment-variable patterns; it does not inspect private build logs.

Check your Netlify app now

Run free security scan

Last reviewed: 2026-04-07. Based on publicly available security research and UNPWNED scan telemetry.