---
id: "GHSA-54cm-q9wq-9442"
page: "https://infrastack.ai/live/GHSA-54cm-q9wq-9442"
kind: "package"
aliases: ["GHSA-54cm-q9wq-9442", "MAL-2026-14272"]
title: "Malicious code in price-scripping-js (npm)"
severity: "critical"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "price-scripping-js", "note": "all versions", "fixed": [], "affected": "", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["malicious", "package"]
not_affected_if: []
published_at: "2026-08-19T06:58:53+00:00"
first_seen_at: "2026-11-10T00:26:21+00:00"
updated_at: "2026-11-10T00:27:33+00:00"
sources: [{"source": "osv-malicious", "url": "https://osv.dev/vulnerability/MAL-2026-14272", "first_seen_at": "2026-11-10T00:26:21+00:00"}]
exploit_sources: []
---

# Malicious code in price-scripping-js (npm)

Link for people: https://infrastack.ai/live/GHSA-54cm-q9wq-9442 (this .md is for agents)

## Affected

- npm:price-scripping-js affected range not listed fixed no fixed version listed

## Timeline

- 2026-11-10T00:26:21+00:00 osv-malicious https://osv.dev/vulnerability/MAL-2026-14272

## From the sources

---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (52b5a1792ab4822af305a8d853e858a8063d9e82e5d91d3dbd3a748300aaf7f9)
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.

## Source: ghsa-malware (1c5e6886b9df1fd1372776a292038a13f0c568fe4f27aab8e7ad2a1879eb45d9)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
