# GHSA-WP99-P72H-8PQ6: Malicious code in sw-pluginer (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-08-19
- Modified: 2026-08-19

## Affected versions

- sw-pluginer (npm): 1.1.0
- sw-pluginer (npm): 1.0.2
- sw-pluginer (npm): 1.2.0
- sw-pluginer (npm): 1.0.1
- sw-pluginer (npm): 1.0.0

## Description

## Source: amazon-inspector (38427a19b5e267273200d4dc05d0b9a60f0a38bfe7916adaaeb90338af5f1b06)
sw-pluginer presents itself as a Tailwind plugin for service worker registration, but its main export — invoked when Tailwind processes its config via require('sw-pluginer') — reads a URL from a staged file at node_modules/.bin/manifest.json, performs an HTTP GET to that URL, and passes the response body directly to eval() in the Node build process. The staging file is written by a separate dropper component and is unlinked after being read, hiding the payload destination from static inspection of the sw-pluginer tarball itself. The fetched code is not pinned, hashed, or signature-verified, and it is executed in the developer's Node environment (not in a browser as service worker code) — so whoever controls the staged manifest.json obtains arbitrary code execution on the developer machine at build time. The self-deleting indirection through node_modules/.bin/manifest.json plus eval of unverified network-fetched JavaScript is a covert dropper mechanism, not service worker registration.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/05ce3e47867d1a0061c8e1196f1605116c0aafe9/osv/malicious/npm/sw-pluginer/MAL-2026-14211.json))

## References

- https://github.com/ossf/malicious-packages/blob/05ce3e47867d1a0061c8e1196f1605116c0aafe9/osv/malicious/npm/sw-pluginer/MAL-2026-14211.json
- https://www.npmjs.com/package/sw-pluginer/v/1.0.0
- https://www.npmjs.com/package/sw-pluginer/v/1.0.1
- https://www.npmjs.com/package/sw-pluginer/v/1.0.2
- https://www.npmjs.com/package/sw-pluginer/v/1.1.0
- https://www.npmjs.com/package/sw-pluginer/v/1.2.0
- https://github.com/advisories/GHSA-wp99-p72h-8pq6

Page: https://cve.now/GHSA-WP99-P72H-8PQ6

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