OpenSSF/OSV advisory MAL-2026-11270 confirms this npm version as malicious. playground/src/routes/auth.routes.js contains an obfuscated trailer appended after the normal router export. The trailer aliases require/module to globals, then uses a custom seeded-PRNG string-shuffle routine (JFG) to deterministically reconstruct the identifier 'constructor' from a scrambled alphabet, obtains the Function constructor by that indirection, decodes a hidden string payload, and invokes it as...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in create-backend-scaffold (npm)
Details
playground/src/routes/auth.routes.js contains an obfuscated trailer appended after the normal router export. The trailer aliases require/module to globals, then uses a custom seeded-PRNG string-shuffle routine (JFG) to deterministically reconstruct the identifier 'constructor' from a scrambled alphabet, obtains the Function constructor by that indirection, decodes a hidden string payload, and invokes it as JavaScript at module load. The file is imported by src/app.js, which is loaded by the package's shipped server.js, so running the shipped server (e.g. `node server.js` or `npm run dev`) executes the hidden payload. The obfuscation technique (arithmetic-PRNG string permutation to hide 'constructor' and the Function body) is designed to evade static keyword matching. The tarball additionally ships a.env file containing a live MongoDB Atlas connection URI for the author's own cluster (author-owned credential leak, separate from the payload behavior).
## Source: ghsa-malware (f749e8b76ccc1619cfe98769cfcc133208c515f14ed198115a55587b28a49951) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Decision reason
OpenSSF Malicious Packages via OSV confirms create-backend-scaffold@1.0.2 as malicious (MAL-2026-11270): Malicious code in create-backend-scaffold (npm)