Critical Malicious Code Vulnerability in @asyncapi/nodejs-ws-template Package

@asyncapi/nodejs-ws-template Updated 24 Nov 2025

Summary

24/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-190719: Malicious code in @asyncapi/nodejs-ws-template (npm). Affects @asyncapi/nodejs-ws-template versions 0.10.1 – 0.10.2. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The @asyncapi/nodejs-ws-template package is a Node.js template designed for building WebSocket applications using the AsyncAPI specification. It provides developers with a structured starting point to create applications that utilize WebSocket communication effectively. However, this package has been identified to contain malicious code, posing significant security risks to any system that has it installed.

Vulnerability Detail

The vulnerability stems from the presence of embedded malicious code within the @asyncapi/nodejs-ws-template package. This code can compromise any computer that has the package installed, allowing unauthorized access and control to external entities. The ramifications include potential data breaches, loss of sensitive information, and complete system compromise. Users are advised to treat any system running this package as fully compromised and to take immediate action to secure their environment.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall @asyncapi/nodejs-ws-template

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

There are no effective workarounds for this vulnerability other than removing the package entirely. Ensure that you monitor your system for any unusual activity after removal.

Conclusion

The @asyncapi/nodejs-ws-template package has been identified as containing malicious code, posing severe security risks to any system that has it installed. Immediate action is required to uninstall the package and secure any sensitive information. Users are encouraged to utilize tools like Vulert for ongoing monitoring of open-source vulnerabilities.

See every vulnerability recorded for @asyncapi/nodejs-ws-template →

Share this vulnerability

FAQ

You should immediately uninstall the package using 'npm uninstall @asyncapi/nodejs-ws-template' and rotate any sensitive keys or secrets stored on your system.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without requiring any signup.

Failing to address this vulnerability can lead to unauthorized access to your system, data breaches, and potential loss of sensitive information.

The only mitigation is to remove the package entirely, as there are no effective patches or workarounds available.

While not all packages from the same author may be compromised, it is advisable to conduct thorough security reviews and audits of any package before use.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall @asyncapi/nodejs-ws-template

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback