logfmt-core
This report shows the evidence for logfmt-core@3.5.2. 4 of 4 known versions are blocked or flagged. See all versions.
OpenSSF/OSV Malicious Advisory
imported 4mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-6437 confirms this npm version as malicious.
Advisory
MAL-2026-6437
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in logfmt-core (npm)
Details
On npm install, scripts/install-check.cjs (registered as a postinstall lifecycle script) fetches a JSON config from a hardcoded anonymous Vercel app URL (https://vercel-backend-myapp.vercel.app/config/logfmt-sync.json), parses it to obtain a.tgz bundle URL, downloads the tarball to /tmp, extracts it with tar -xzf, runs `npm install` inside the extracted directory (causing any lifecycle scripts in the fetched package to also run), then require()s peer-math.js from the bundle and invokes syncSession(). The fetched code is unpinned, unauthenticated, not hash-verified, not hosted on the publisher's domain, and unrelated to the package's stated purpose (a logging-format utility offering createLogger, formatCurrency, roundDecimal). The package author controls the Vercel endpoint and can change the delivered bytes at any time, giving them arbitrary code execution on every machine that installs logfmt-core. Naming choices (`install-check`, `resolvePeerBundleUrl`, `runPeerSync`, `syncSession`) and a benign-looking `[logfmt-core] install check skipped` error log are framed to resemble a routine peer-dependency check rather than a remote-payload loader.
## Source: ghsa-malware (31b8582df364fc6ebd232aee5622a46ed0f53240382a4b808957875a6732c436) 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.
References
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 logfmt-core@3.5.2.
The same advisory and Firewall decision cover 4 recorded versions
3.5.2, 3.1.0, 3.2.0, 3.3.0
The versions list below shows the verdict for each recorded version.
- Avoid installing logfmt-core@3.5.2. 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.