# GHSA-2P34-9H9G-7WF4: Malicious code in txs-lib-sdk (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-08-19
- Modified: 2026-08-19

## Affected versions

- txs-lib-sdk (npm): 1.0.2

## Description

## Source: amazon-inspector (5575013ead36c1ebb523009215200be0a1bf61d21285ca8515573963a63e3aa5)
The package's advertised getTransactions() API invokes an internal loader that reads database.js — a file disguised as a product catalog — extracts each record's `mark` field, base64-decodes it and applies a per-byte Caesar shift, concatenates the result into a code string, and passes it to the Function constructor together with Buffer, require, and process. This yields arbitrary Node.js execution with full filesystem, network, and child_process capabilities on the caller's host whenever the documented API is used. index.js hides the sink by reconstructing the identifiers 'setTimeout', 'Function', 'Buffer', 'require', and 'process' from a split string-array and by resolving the Function constructor indirectly via globalThis.constructor.constructor. The multi-layer obfuscation (identifier reassembly, indirect constructor lookup, base64+Caesar-encoded payload, JSON-shaped carrier file, deferred setTimeout) has no legitimate purpose for a package presented as a transactions helper and is the concealment layer of a supply-chain loader.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/e4fd8f1fd55c6b9530f08a479f6d2ee26c362f9e/osv/malicious/npm/txs-lib-sdk/MAL-2026-14198.json))

## References

- https://github.com/ossf/malicious-packages/blob/e4fd8f1fd55c6b9530f08a479f6d2ee26c362f9e/osv/malicious/npm/txs-lib-sdk/MAL-2026-14198.json
- https://www.npmjs.com/package/txs-lib-sdk/v/1.0.2
- https://github.com/advisories/GHSA-2p34-9h9g-7wf4

Page: https://cve.now/GHSA-2P34-9H9G-7WF4

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
