# MAL-2026-10114: Malicious code in driftpin (npm)


- **Type:** Malicious package
- **Package:** `driftpin` (npm)
- **Published:** 10 Jul 2026

## What is MAL-2026-10114?

MAL-2026-10114 is a malicious package in driftpin, published on 10 Jul 2026. 

### Official description

driftpin@1.0.0 advertises itself in the README as an SVG sanitization/minification/conversion utility, but the only actual export from index.js is an undocumented function `getPlugin`. When a consumer calls `getPlugin()()`, the returned closure performs an HTTP GET against https://www.jsonkeeper.com/b/3P9BF — an anonymous, mutable paste host — parses the JSON response, and passes the response's `model` field directly to `eval`. Whoever controls the paste can change its contents at any moment to run arbitrary JavaScript inside any process that loads driftpin and invokes the export. The advertised SVG functionality is a cover story; the documented API surface (sanitizeSVG/minifySVG/saveSVG/convertSVGToPNG) is not actually exported. Additionally, index.js `require('request')` without declaring `request` in package.json dependencies, indicating the backdoor was grafted onto an unrelated skeleton.

## What should I do about MAL-2026-10114?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-10114 is a malicious package: driftpin (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-10114/ (Markdown: https://insights.sbomify.com/MAL-2026-10114/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-10114

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-10114/
Summaries are generated and may contain mistakes; the official description above is the record.
