GHSA-qhmg-8r8f-cggq
Malicious code in express-json-database (npm)
Auswirkung
express-json-database@2.1.2 presents itself as a json-database feed client but its exported `server()` function performs a challenge/attest handshake against https://cafrino-feed.onrender.com (posting `process.platform` and placeholder `envKeys`/`processes` fields, with a `bypass-tunnel-reminder` header), then fetches arbitrary text from /api/feed and passes it to `inlinearray(text, true)`. The required module `inline-array` is not declared in package.json dependencies, so resolution of that name is uncontrolled — whoever registers or controls that npm name supplies the code that runs in the consumer's process, while the remote onrender.com endpoint simultaneously controls the input fed to it. The handshake fields (`platform`, placeholders for env keys and processes) have no cryptographic function for a plaintext feed and let the server target responses by caller environment. Together these form a two-sided remote-content execution channel: attacker-controlled code (via the undeclared dependency) processes attacker-controlled, platform-targeted input. 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.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | express-json-database | >= 0 | nicht erfasst |