LWA-2026-7706 MAL-2026-11768 ↗ confirmed malware

@ornikar/react-modern-calendar-datepicker@3.2.6

Malicious code in @ornikar/react-modern-calendar-datepicker (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1027 · Obfuscated Files or Information

Analysis

A trojanized clone of the react-modern-calendar-datepicker library. The package ships the legitimate datepicker code alongside a malicious preinstall hook (setup.mjs) that downloads the Bun JavaScript runtime and uses it to execute a 727KB heavily-obfuscated payload (math_init.js). The payload is executed at install time via the preinstall lifecycle script. The obfuscated payload contains eval, Function constructor, and child_process calls. The Bun binary is downloaded from the official GitHub releases URL (github[.]com/oven-sh/bun/releases/download/bun-v1.3.13/).

analyzed by
Leitwacht
first seen
Aug 4, 2026, 11:16 AM
analyzed
Aug 4, 2026, 11:18 AM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.