Skip to main content
MalwarePublished

ogensec-sdk (npm) · Malicious Code

Affects ogensec-sdkSource GCVE Database

0

Malicious package : remove ogensec-sdk and rotate any secrets on hosts that installed it.

Data as of 15 Jul 2026, 12:57 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10639

What to do

Remove ogensec-sdk 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
npmogensec-sdkAffected
  • =1.2.1
  • =1.1.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 ogensec-sdk npm package contains a malicious Express middleware that executes arbitrary JavaScript code fetched dynamically from a configured remote server on every incoming HTTP request. This remote code execution (RCE) capability is concealed by obfuscation and undocumented as arbitrary code execution, allowing the backend maintainer or an attacker who compromises the backend to run code with full access to the Node.js process and live request/response objects. Versions 1.1.1 and 1.2.1 of the package are affected. This creates a persistent, undisclosed RCE channel in all deployments using this middleware.

References

Community reviews

Loading reviews…