Malicious Code Detected in textual-sorter-lib: A Critical Security Alert
Summary
MAL-2026-317: Malicious code in textual-sorter-lib (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
textual-sorter-lib is an npm package designed for sorting textual data efficiently. It is commonly used in various applications that require data manipulation and organization. However, this package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the textual-sorter-lib package. This code can potentially compromise the security of applications that depend on this library, leading to unauthorized access, data breaches, or other malicious activities. The malicious code was detected by Amazon Inspector, highlighting the importance of scrutinizing third-party packages for security flaws.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall textual-sorter-lib
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
If an immediate update is not feasible, consider removing the textual-sorter-lib package from your project and replacing it with an alternative library that offers similar functionality without the associated risks. Additionally, you can monitor your application for vulnerabilities using tools like Vulert, which analyzes your package-lock.json file for real-time alerts on open-source vulnerabilities.
Conclusion
The discovery of malicious code in the textual-sorter-lib package underscores the critical need for vigilance when using third-party libraries. By updating to a secure version and utilizing tools like Vulert, developers can protect their applications from potential threats.
See every vulnerability recorded for textual-sorter-lib →
FAQ
textual-sorter-lib is an npm package used for sorting textual data in applications.
The malicious code can lead to unauthorized access and potential data breaches in applications using the package.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Consider removing the package and using an alternative library, while also monitoring your application for vulnerabilities.
Vulert monitors and alerts you in real-time for open-source vulnerabilities by analyzing your package-lock.json file.