Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in mongoose-json-format (npm)

0
Critical
Published: 06/26/2026 (06/26/2026, 02:18:00 UTC)
Source: GCVE Database
Product: mongoose-json-format

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (910cc6eef707ac872daeb3a527e6dd9c75044ebb178f9eb48745f5cfd4123968) helpers.js defines a createLog() helper that base64-decodes a constant HASH_KEY to https://www.jsonkeeper.com/b/XVHGD (an anonymous JSON-paste host) and fetches the response, then passes data.data to a createLogger() function from the log-format-thread dependency. The destination URL is stored as a base64 literal to avoid plain-text discovery. However, the helper is never invoked from the package's main entry (index.js) in this version, and helpers.js itself contains broken code (an `import { req } from "request"` for an unused symbol, and a top-level `await` inside a non-async function) that would prevent the module from loading cleanly if it were required. The fetched content is also passed only to a logger formatter, not to eval/exec/Function/require — so even on the dead code path, the bytes are not executed as code. The combination of obfuscated URL + anonymous paste host + tampering shape is suspicious and inconsistent with a legitimate JSON-formatting helper, but the harmful path is not reached by a default require() of this package and there is no install-time lifecycle hook driving the fetch. ## Source: ghsa-malware (4b3b4e269246a3979e91e827093cc4161b3f4351957eae0d3f1ba80ae8a07502) 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.

Affected software

npmghsa
mongoose-json-format
Affected versions
=3.0.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/07/2026, 00:02:51 UTC

Technical Analysis

The mongoose-json-format npm package version 3.0.1 includes malicious code that, upon require(), base64-decodes a string named HASH_KEY to obtain a URL pointing to jsonkeeper.com, an anonymous mutable JSON paste host. It fetches data from this URL and passes the attacker-controlled content to a logging function from the log-format-thread dependency. Since the content is attacker-mutable and processed at import time, this allows arbitrary attacker-controlled code execution on any system importing this package. This behavior is unrelated to the package's legitimate function and represents a supply chain compromise.

Potential Impact

Systems that have mongoose-json-format version 3.0.1 installed or running are fully compromised due to arbitrary attacker-controlled code execution at import time. Attackers may gain full control of the affected system, potentially accessing all stored secrets and keys. The compromise is severe enough that simply removing the package may not fully remediate the system, necessitating secret rotation and thorough incident response.

Mitigation Recommendations

Immediate removal of mongoose-json-format version 3.0.1 is recommended. All secrets and keys stored on the affected system should be rotated from a separate, trusted environment. Because the system may be fully compromised, further investigation and remediation beyond package removal are necessary. Patch status is not confirmed; no official fix or updated version is indicated. Users should avoid using this package version and monitor vendor or repository advisories for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6499
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a3ef7c927e9c79719000266

Added to database: 06/26/2026, 22:06:01 UTC

Last enriched: 07/07/2026, 00:02:51 UTC

Last updated: 07/29/2026, 09:13:42 UTC

Views: 37

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses