
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
libnpmexec
Advanced tools
The npm exec (npx) Programmatic API
npm install libnpmexec
const libexec = require('libnpmexec')
await libexec({
args: ['yosay', 'Bom dia!'],
cache: '~/.npm/_cacache',
npxCache: '~/.npm/_npx',
yes: true,
})
libexec(opts)opts:
args: List of pkgs to execute Array, defaults to []call: An alternative command to run when using packages option String, defaults to empty string.cache: The path location to where the npm cache folder is placed StringnpxCache: The path location to where the npx cache folder is placed Stringchalk: Chalk instance to use for colors? RequiredlocalBin: Location to the node_modules/.bin folder of the local project to start scanning for bin files String, defaults to ./node_modules/.bin. libexec will walk up the directory structure looking for node_modules/.bin folders in parent folders that might satisfy the current arg and will use that bin if found.locationMsg: Overrides "at location" message when entering interactive mode StringglobalBin: Location to the global space bin folder, same as: $(npm bin -g) String, defaults to empty string.packages: A list of packages to be used (possibly fetch from the registry) Array, defaults to []path: Location to where to read local project info (package.json) String, defaults to .runPath: Location to where to execute the script String, defaults to .scriptShell: Default shell to be used String, defaults to sh on POSIX systems, process.env.ComSpec OR cmd on Windowsyes: Should skip download confirmation prompt when fetching missing packages from the registry? Booleanregistry, cache, and more options that are forwarded to @npmcli/arborist and pacote ObjectFAQs
npm exec (npx) programmatic API
The npm package libnpmexec receives a total of 544,828 weekly downloads. As such, libnpmexec popularity was classified as popular.
We found that libnpmexec demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.