Critical Malicious Code Vulnerability in cnamts-captcha-component Package
Summary
MAL-2026-245: Malicious code in cnamts-captcha-component (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 cnamts-captcha-component is a package available on npm that is designed to provide CAPTCHA functionalities for web applications. It is often used to enhance security by preventing automated submissions. However, this package has been compromised, leading to significant security risks for any application that integrates it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code embedded within the cnamts-captcha-component package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The origin of this vulnerability is traced back to a malicious actor who injected harmful code into the package, which is classified under CWE-506, indicating that it contains embedded malicious code. The ramifications of this vulnerability are severe, as it can lead to data breaches and loss of control over the affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cnamts-captcha-component
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, it is recommended to temporarily disable any functionalities that rely on the cnamts-captcha-component package until it can be safely removed or replaced with a secure alternative. Ensure to monitor your application for any unusual activities during this period.
Conclusion
The cnamts-captcha-component package has been identified as containing malicious code that poses a significant security threat. Immediate action is required to remove the package and secure any sensitive information. Users are encouraged to monitor their applications and consider using tools like Vulert for ongoing vulnerability management.
See every vulnerability recorded for cnamts-captcha-component →
FAQ
It is an npm package used to implement CAPTCHA functionalities in web applications to prevent automated submissions.
The malicious code can compromise your system, allowing unauthorized access to sensitive information and potentially leading to data breaches.
You should remove the cnamts-captcha-component package immediately and rotate any sensitive information stored on the affected system.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
If a patched version is released, updating the package will resolve the vulnerability. However, immediate removal is recommended as a precaution.