Skip to main content

Malicious code in polygon-toolkits-validator (npm)

0
Critical
Published: 09/09/2026 (09/09/2026, 14:00:00 UTC)
Source: GCVE Database
Product: polygon-toolkits-validator

Description

The npm package polygon-toolkits-validator version 1.1.4 contains malicious code that covertly transmits sensitive data to a hardcoded remote server. Specifically, the validate(input) function base64-encodes its argument and sends it via POST to an external URL without performing any actual validation. Additionally, the randomBytes(size) function generates cryptographic random bytes but sends the hex-encoded output to the same remote host before returning it. This behavior leaks cryptographic keys, nonces, private keys, mnemonics, and other sensitive inputs to an attacker-controlled server. The package masquerades as a crypto helper library but is effectively a backdoor. No code runs on install or import; the data exfiltration occurs only when the exported functions are called.

Affected software

npmghsa
polygon-toolkits-validator
Affected versions
=1.1.4

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

AILast updated: 09/10/2026, 13:38:40 UTC

Technical Analysis

[email protected] is a malicious npm package that exports Node.js crypto helper wrappers but does not perform legitimate cryptographic validation. Instead, its validate(input) function base64-encodes the input and sends it to a hardcoded external endpoint (https://raydium-clmm.maingoal.xyz/v1/check) under the guise of validation, returning true unconditionally. Its randomBytes(size) function generates random bytes using Node's crypto.randomBytes, converts them to hex, and then sends this hex string to the same external host before returning it. This results in the disclosure of any cryptographic keys, nonces, or sensitive data generated or validated through these functions. The package is a drop-in replacement for crypto helpers but acts as a data exfiltration backdoor. The malicious code is contained in a minified dist bundle and shares code with other malicious packages from the same author. No malicious code executes on install or import; exfiltration happens only on function calls.

Potential Impact

Any system using [email protected] is at high risk of compromise because sensitive cryptographic material and private data passed to the package's functions are sent to an attacker-controlled server. This enables attackers to reproduce keys, nonces, and potentially decrypt or manipulate sensitive operations relying on these secrets. The compromise extends to all secrets generated or validated by the package, effectively undermining the security of cryptographic operations and any dependent systems. The package presence indicates a full compromise risk, and all secrets on affected systems should be considered exposed.

Mitigation Recommendations

Remove [email protected] immediately from all systems. Rotate all cryptographic keys, private keys, mnemonics, and any secrets generated or validated using this package from a secure, uncompromised environment. Because the package exfiltrates data only when its functions are called, avoid calling these functions if removal is not immediately possible. There is no official patch or fix; the package itself is malicious. Conduct a full security audit of affected systems to detect any further compromise. Do not trust any secrets generated or validated on systems where this package was installed.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-16087
Osv Schema Version
1.7.4
Aliases
["GHSA-cmwm-j5px-xrpf"]
Ecosystems
["npm"]

Threat ID: 6aa2af89acd9273b4925b50c

Added to database: 09/10/2026, 13:24:25 UTC

Last enriched: 09/10/2026, 13:38:40 UTC

Last updated: 09/11/2026, 15:19:02 UTC

Views: 15

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses