Skip to main content
MalwarePublished Updated

db-query-log (npm) · Malicious Code

Affects db-query-logSource GCVE Database

0

Malicious package : remove db-query-log and rotate any secrets on hosts that installed it.

Data as of 20 Aug 2026, 16:59 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6539

What to do

Remove db-query-log from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmdb-query-logAffected
  • =1.0.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package 'db-query-log' version 1.0.1 contains malicious code that fetches and executes attacker-controlled JavaScript code at runtime. It disguises a remote code execution backdoor by decoding a hardcoded base64 URL pointing to an attacker-controlled JSON paste site, retrieving code, and executing it within the Node.js process. This behavior is hidden from static analysis and misrepresents its origin by referencing unrelated upstream repositories. Any system running this package is at risk of full compromise.

References

Community reviews

Loading reviews…