The npm package chai-guid version 1.1.5 contains malicious code that impersonates legitimate packages and executes attacker-controlled JavaScript code with full Node.js privileges when its middleware is invoked. It fetches and runs code from an anonymous JSON paste service, enabling remote code execution on the consumer's machine.