Skip to main content

Malicious code in txs-runner-sdk (npm)

0
Critical
Published: 08/19/2026 (08/19/2026, 01:16:13 UTC)
Source: GCVE Database
Product: txs-runner-sdk

Description

The npm package txs-runner-sdk version 1.0.1 contains malicious code that executes attacker-controlled JavaScript when its main API method is called. It reads a JSON data file with base64-encoded fields, decodes and transforms the data using a Caesar shift, then executes the resulting code via eval(), effectively acting as a loader/dropper. This behavior is inconsistent with the package's advertised purpose of generating random transaction data and indicates a supply chain compromise.

Affected software

npmghsa
txs-runner-sdk
Affected versions
=1.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: 08/19/2026, 14:43:16 UTC

Technical Analysis

The txs-runner-sdk npm package (version 1.0.1) advertises functionality for generating random transaction data. However, its main API method getTransactions() calls load_transaction_data(), which reads a JSON file containing base64-encoded 'mark' fields. These fields are processed with a per-character Caesar shift keyed by an item count, concatenated, base64-decoded, and then executed dynamically using eval() inside a try/catch block. This dynamic code execution is a loader/dropper pattern, allowing execution of attacker-authored JavaScript within the calling process. The package's declared dependencies on axios and python-shell suggest it may fetch or spawn additional payloads after initial execution. This behavior represents a malicious package designed to execute arbitrary code under the guise of legitimate functionality.

Potential Impact

Any consumer invoking the getTransactions() API method in txs-runner-sdk version 1.0.1 will execute attacker-controlled JavaScript code within their environment. This can lead to arbitrary code execution, potentially allowing further payload delivery, data compromise, or system control depending on the attacker's intent. The malicious code is embedded in the package itself and triggered by normal API usage, posing a direct supply chain risk to users of this package.

Mitigation Recommendations

No official patch or remediation is currently documented for txs-runner-sdk version 1.0.1. Users should immediately cease using this package and remove it from their projects. Verify dependencies and replace this package with a trusted alternative. Monitor for updates from the package maintainer or npm advisory channels for any official fixes or removal notices. Until a fix is available, avoid executing code from this package to prevent arbitrary code execution.

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-14199
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a85b4c8acd9273b4925289b

Added to database: 08/19/2026, 13:51:04 UTC

Last enriched: 08/19/2026, 14:43:16 UTC

Last updated: 10/02/2026, 13:52:42 UTC

Views: 22

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