Vulnerability MAL-2026-3675
Summary
Malicious code in 6cc (npm)
Details
Versions 0.2.7 and 0.3.9 carry the console relay reported for 0.2.8. In 0.2.7, index.js reassigns console.warn and console.error at lines 168 and 173, the same lines as in 0.2.8. In 0.3.9 the relay is reworked: index.js replaces the global console with a Proxy when the module is loaded, so that console.dir sends its value to a Firebase database, and console.dir, console.error and console.warn send their text to a Telegram chat. The older form is still in _index.js at lines 258 and 263. None of the three releases declares an install hook; the relay runs when the package is loaded. Only 0.2.7, 0.2.8 and 0.3.9 of the 67 published versions were read, so this is not the full affected range.