
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
env-install
Advanced tools
Install envDependencies from package.json using environment variable replacements
Using private git repositories that requires authentication is often necessary when running npm install, but you don't want to put keys, tokens or passwords in your code, so instead you can used this module that allows you to define packages with environment variable names to inject your keys, passwords or tokens.
Add this module as a dependency in your projects normal dependencies, and add a postinstall
script that contains env-install
.
Then declare your dependencies containing environment variables in envDependencies
scripts: {
"postinstall": "env-install"
},
dependencies: {
"env-install": "1.0.0"
},
envDependencies: {
"some-secret-module": "git+https://${GITHUB_TOKEN}:x-oauth-basic@github.com/you/privaterepo"
}
In the above example some-secret-module
will be installed like this:
GITHUB_TOKEN=abcdefg123456
npm install https://abcdefg123456:x-oauth-basic@github.com/you/privaterepo
FAQs
Install envDependencies from package.json using environment variable replacements
The npm package env-install receives a total of 81 weekly downloads. As such, env-install popularity was classified as not popular.
We found that env-install demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.