scdn-jquery@0.1.7
Malicious code in scdn-jquery (npm)
Analysis
This package republishes the jQuery library under a "jQuery v18.2.0" banner with an injected encoded-code execution stub. In libs/18.2.0.js, inside the UMD wrapper and before the library code, an IIFE calls atob("Sluqag=="), XORs the decoded bytes against a repeating 4-byte key (String.fromCharCode(a.charCodeAt(h)^a.charCodeAt(h&3))) starting at offset h=4, and then executes the result as JavaScript via new Function(decodeURIComponent(escape(v)))(); the whole block is wrapped in a try/catch that silently swallows any failure. In version 0.1.7 the embedded base64 blob decodes to only four bytes, shorter than the loop's starting offset, so the loop body never runs and the stub evaluates an empty string: the decode-and-eval stager is installed but dormant, and no second-stage payload is executed in this build. The package declares no install or postinstall lifecycle hooks and contains no URLs, hostnames or IP addresses — the only other decoder-shaped code in the file is jQuery's own unicode-escape handling. The stub is the mechanism by which a future version's payload would run silently at module load; there is no network indicator to report for this version.
- analyzed by
- Leitwacht
- first seen
- Nov 1, 2026, 07:08 PM
- analyzed
- Nov 1, 2026, 07:09 PM
- weekly installs
- 692
Related advisories
- persona-ai-sdk@1.0.0
- @ifasn/mmdd-doc-mcp@2.0.4
- character-ai-sdk@1.0.0
- char-ai-sdk@1.0.0
- raiden-baileys@2.1.4
- random-transactions-sdk@1.0.4
- random-transactions-sdk@1.0.1
- calculatorsyippie@1.0.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.