NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

json-spacernpm

Advisory published Updated

json-spacer is a confirmed malicious npm package (MAL-2026-3008) that executes malicious code on install (malicious versions 7.4.14, 7.4.15, 7.4.16). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in json-spacer (npm)

MAL-2026-3008
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall json-spacer

What this malware does

The package json-spacer was found to contain malicious code.

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.

Malicious versions

3 flagged
7.4.147.4.157.4.16

Indicators of compromise (SHA-256)

04db81abcbf28276b2cb30a860e8decbc485699a1db9ea9557e0595e5f86be82
49ca906e0f0d7b5884d939ad398cc8367cad887c10533eb833b6f043e5368bfd
c03b700e6fbed05b142aad87d32fe6cf1e903f9c007fbc95eec71c935facd795

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for json-spacer (3 malicious versions).

  2. If you installed it — respond

    Remove json-spacer from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If json-spacer was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. json-spacer on npm has been identified as a malicious package (versions 7.4.14, 7.4.15, 7.4.16 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-hp4j-fxr5-4x88RLMA-2026-05127

References

Credits

  • Amazon Inspector · finder
  • ReversingLabs · finder

Detect & block this

O3 blocks json-spacer-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

json-spacer (npm) malicious package — MAL-2026-3008 | O3 Security