Preliminary Checks
Reproduction
n/a
Publishable key
pk_test_123456789
Description
npm postinstall scripts are a significant security risk in the JavaScript ecosystem and are frequently used as an attack vector in supply-chain incidents. Given the current threat landscape, many teams are moving toward blocking or heavily restricting these scripts by default.
Clerk currently uses a postinstall script for telemetry. We do not believe telemetry justifies the security tradeoff of running install-time scripts, especially when users and organizations are actively trying to reduce exposure to this class of risk.
We plan to block these scripts in our environment. For the security of your users, and in recognition of the ongoing risks in the JavaScript ecosystem, we ask that Clerk remove the use of postinstall scripts for telemetry.
Environment
As a security practice I no longer run npx, pnpm dlx or equivalent one off package execution commands on my machine.
latest macOS, latest clerk SDKs
Preliminary Checks
I have reviewed the documentation: https://clerk.com/docs
I have searched for existing issues: https://github.com/clerk/javascript/issues
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
n/a
Publishable key
pk_test_123456789
Description
npm postinstall scripts are a significant security risk in the JavaScript ecosystem and are frequently used as an attack vector in supply-chain incidents. Given the current threat landscape, many teams are moving toward blocking or heavily restricting these scripts by default.
Clerk currently uses a postinstall script for telemetry. We do not believe telemetry justifies the security tradeoff of running install-time scripts, especially when users and organizations are actively trying to reduce exposure to this class of risk.
We plan to block these scripts in our environment. For the security of your users, and in recognition of the ongoing risks in the JavaScript ecosystem, we ask that Clerk remove the use of postinstall scripts for telemetry.
Environment