Malicious Code Detected in square-crypto-utils-internal Package
Summary
MAL-2025-5957: Malicious code in square-crypto-utils-internal (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The square-crypto-utils-internal package is a utility library designed for cryptographic operations within the Square ecosystem. It is utilized by developers to implement secure transactions and manage sensitive data. However, this package has been compromised, embedding malicious code that poses significant security risks to any system using it.
Vulnerability Detail
The vulnerability stems from the presence of embedded malicious code within the square-crypto-utils-internal package. This code can compromise the integrity of the host system, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code has been confirmed by security experts, and any system running this package should be considered fully compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall square-crypto-utils-internal
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, if immediate removal of the package is not feasible, consider isolating the application using this package in a secure environment to limit exposure. However, this is not a permanent solution and should not replace the removal of the package.
Conclusion
The square-crypto-utils-internal package has been found to contain malicious code, posing serious security risks. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for square-crypto-utils-internal →
FAQ
It is a utility library used for cryptographic operations within the Square ecosystem, aimed at facilitating secure transactions.
The embedded malicious code can compromise your system's security, allowing unauthorized access to sensitive information and potentially leading to data breaches.
Immediately remove the square-crypto-utils-internal package and rotate all sensitive information stored on the affected system.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities. You can check your application without signup at the Vulert playground.
While isolating the package may limit exposure, it is not a permanent solution. The package should be removed to ensure full security.