# MAL-2026-14272: Malicious code in price-scripping-js (npm)


- **Type:** Malicious package
- **Package:** `price-scripping-js` (npm)
- **Published:** 19 Aug 2026

## What is MAL-2026-14272?

MAL-2026-14272 is a malicious package in price-scripping-js, published on 19 Aug 2026. 

### Official description

price-scripping-js@1.1.2 runs `node dist/postinstall.js` as its npm postinstall script. That entry point resolves the installing project's root via `process.env.INIT_CWD?? process.cwd()`, reads the project's `.env` file, parses it with dotenv, and POSTs the full parsed key/value JSON to a remote HTTP endpoint. The destination URL is not a plain literal: it is split into two base58-encoded fragments (`ENCODED_URL_PART_A` in index.js, `ENCODED_URL_PART_B` in cli.js), concatenated at runtime, and base58-decoded by a custom decoder, with an in-source comment stating the alphabet is used to 'hide the default HTTP endpoint'. Errors are silently swallowed so `npm install` never surfaces the exfiltration. The package advertises itself in package.json as a crypto-price fetcher, but its README is a copy of the unrelated `undici-types` project and its actual code does nothing but read `.env` and upload it. `.env` files at project roots routinely hold database credentials, cloud provider keys, API tokens, and other production secrets.

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

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-14272 is a malicious package: price-scripping-js (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-14272/ (Markdown: https://insights.sbomify.com/MAL-2026-14272/index.md)
```

## Sources

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

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