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…

MAL-2026-10639: Malicious code in ogensec-sdk (npm)

0
Critical
Published: 07/15/2026 (07/15/2026, 03:56:52 UTC)
Source: GCVE Database
Product: ogensec-sdk

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.

Affected software

npmghsa
ogensec-sdk
Affected versions
=1.2.1=1.1.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/15/2026, 12:57:20 UTC

Technical Analysis

The ogensec-sdk package ships an Express middleware that, for each incoming request, sends a POST request containing {appId, endpoint} to a configured baseUrl. The response is interpreted as a list of items containing a hotfix.code string, which is wrapped and executed asynchronously using the AsyncFunction constructor with access to require, req, and res. This allows arbitrary JavaScript code from the remote server to run inside the Node.js process handling the requests, effectively enabling remote code execution. The package's distributed code is heavily obfuscated, hiding this mechanism from developers. Any compromise or MITM attack on the backend server providing these hotfix codes results in full RCE on all deployments using this middleware. The backend maintainer inherently has persistent remote execution access to every installation.

Potential Impact

This vulnerability allows an attacker controlling or intercepting the configured backend server to execute arbitrary code within the Node.js process of every application using the ogensec-sdk middleware. This includes full access to require modules and live HTTP request and response objects, enabling complete compromise of the affected applications. The malicious code execution is persistent and undisclosed, posing a severe risk to confidentiality, integrity, and availability of affected systems.

Mitigation Recommendations

No official patch or remediation is currently documented. Since the vulnerability relies on executing code fetched from a remote server, immediate mitigation involves discontinuing use of the ogensec-sdk package versions 1.1.1 and 1.2.1. Users should avoid deploying this package or remove it from existing deployments. Monitor vendor advisories for any official fixes or updates. Given the lack of source transparency and obfuscation, caution is advised when using this package or any similar middleware that executes remote code.

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-10639
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a577ef668715ace43b41c55

Added to database: 07/15/2026, 12:37:10 UTC

Last enriched: 07/15/2026, 12:57:20 UTC

Last updated: 07/16/2026, 03:53:59 UTC

Views: 7

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