Malicious code in price-scripping-js (npm)
The npm package price-scripping-js version 1.1.2 contains malicious code that exfiltrates environment variables from the installing project's .env file. During installation, it runs a postinstall script that reads sensitive data such as database credentials and API tokens from the .env file and sends this information to a concealed remote HTTP endpoint. The package disguises itself as a crypto-price fetcher but does not perform any legitimate functionality. The exfiltration is hidden by encoding the destination URL and silently swallowing errors to avoid detection during npm install.
AI Analysis
Technical Summary
[email protected] executes a postinstall script that accesses the root project's .env file by resolving the installation directory via process.env.INIT_CWD or process.cwd(). It parses the .env file using dotenv and sends the full parsed key/value pairs as JSON to a remote HTTP endpoint. The endpoint URL is obfuscated by splitting it into two base58-encoded fragments concatenated and decoded at runtime, with an in-source comment noting the use of this alphabet to hide the endpoint. Errors during this process are suppressed, preventing npm install from alerting the user. The package's README is unrelated and copied from another project, indicating deceptive intent. This behavior results in the leakage of sensitive environment variables commonly stored in .env files.
Potential Impact
Sensitive environment variables including database credentials, cloud provider keys, and API tokens stored in the .env file of the affected project are exfiltrated to an attacker-controlled remote server during package installation. This can lead to unauthorized access to critical infrastructure, data breaches, and further compromise of the affected environment. The malicious behavior is stealthy, as errors are suppressed and the package masquerades as a legitimate crypto-price fetching tool, increasing the risk of unnoticed compromise.
Mitigation Recommendations
No official patch or remediation is currently available for [email protected]. Users should immediately remove this package from their projects and avoid installing it. Audit dependencies for malicious or suspicious packages, especially those with unexpected postinstall scripts. Review and rotate any secrets that may have been exposed via .env files if this package was installed. Use trusted sources and verify package authenticity before installation. Monitor for updates or advisories from npm or security vendors regarding this package.
Malicious code in price-scripping-js (npm)
Description
The npm package price-scripping-js version 1.1.2 contains malicious code that exfiltrates environment variables from the installing project's .env file. During installation, it runs a postinstall script that reads sensitive data such as database credentials and API tokens from the .env file and sends this information to a concealed remote HTTP endpoint. The package disguises itself as a crypto-price fetcher but does not perform any legitimate functionality. The exfiltration is hidden by encoding the destination URL and silently swallowing errors to avoid detection during npm install.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
[email protected] executes a postinstall script that accesses the root project's .env file by resolving the installation directory via process.env.INIT_CWD or process.cwd(). It parses the .env file using dotenv and sends the full parsed key/value pairs as JSON to a remote HTTP endpoint. The endpoint URL is obfuscated by splitting it into two base58-encoded fragments concatenated and decoded at runtime, with an in-source comment noting the use of this alphabet to hide the endpoint. Errors during this process are suppressed, preventing npm install from alerting the user. The package's README is unrelated and copied from another project, indicating deceptive intent. This behavior results in the leakage of sensitive environment variables commonly stored in .env files.
Potential Impact
Sensitive environment variables including database credentials, cloud provider keys, and API tokens stored in the .env file of the affected project are exfiltrated to an attacker-controlled remote server during package installation. This can lead to unauthorized access to critical infrastructure, data breaches, and further compromise of the affected environment. The malicious behavior is stealthy, as errors are suppressed and the package masquerades as a legitimate crypto-price fetching tool, increasing the risk of unnoticed compromise.
Mitigation Recommendations
No official patch or remediation is currently available for [email protected]. Users should immediately remove this package from their projects and avoid installing it. Audit dependencies for malicious or suspicious packages, especially those with unexpected postinstall scripts. Review and rotate any secrets that may have been exposed via .env files if this package was installed. Use trusted sources and verify package authenticity before installation. Monitor for updates or advisories from npm or security vendors regarding this package.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14272
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4b4acd9273b4925157a
Added to database: 08/19/2026, 13:50:44 UTC
Last enriched: 08/19/2026, 14:19:03 UTC
Last updated: 08/19/2026, 14:19:03 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.