Critical Malicious Code Vulnerability in syntax-class-constructor-call Package

Summary

18/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1548: Malicious code in syntax-class-constructor-call (npm). Affected versions are not published. 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 syntax-class-constructor-call package is a JavaScript library available on npm that allows developers to utilize class constructor calls in a syntactically elegant manner. However, this package has been identified as containing malicious code that compromises the security of any system where it is installed. The presence of such vulnerabilities can lead to unauthorized access and potential data breaches.

Vulnerability Detail

The vulnerability originates from the malicious code embedded within the syntax-class-constructor-call package. This code can fully compromise any computer that has the package installed, allowing external entities to gain control over the system. The ramifications include the potential theft of sensitive information, such as secrets and keys, stored on the compromised machine. Users are advised to treat any system running this package as fully compromised and to take immediate action.

How To Fix

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

npm uninstall syntax-class-constructor-call

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. It is essential to ensure that all sensitive data is secured and that the system is monitored for any signs of compromise.

Conclusion

The syntax-class-constructor-call package contains malicious code that poses a significant security risk. Users must take immediate action to remove the package and secure their systems. Regular monitoring of dependencies is essential to prevent similar vulnerabilities in the future.

See every vulnerability recorded for syntax-class-constructor-call →

Share this vulnerability

FAQ

Immediately uninstall the package using 'npm uninstall syntax-class-constructor-call' and rotate any sensitive keys or secrets stored on the affected machine.

You can use Vulert's playground at Vulert Scanner to check if your application is affected without requiring any signup.

Leaving this package installed can lead to unauthorized access to your system, potential data breaches, and the compromise of sensitive information.

Regularly monitor your dependencies for vulnerabilities using tools like Vulert, which can alert you in real-time for open-source vulnerabilities.

While many npm packages are safe, it is crucial to vet packages before installation and to keep an eye on vulnerability reports for any dependencies you use.

How To Fix

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

npm uninstall syntax-class-constructor-call

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