Critical Malicious Code Vulnerability in typescript-constructors Package

typescript-constructors Updated 03 Mar 2026

Summary

03/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1214: Malicious code in typescript-constructors (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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The typescript-constructors package is a utility for creating TypeScript constructors with ease, allowing developers to streamline their code. However, it has been identified as containing malicious code that poses significant security risks to any system where it is installed. This vulnerability compromises the integrity of the system, potentially allowing unauthorized access to sensitive information.

Vulnerability Detail

The vulnerability originates from the presence of embedded malicious code within the typescript-constructors package. Any computer that has this package installed is considered fully compromised, as it may allow an external entity to gain full control over the system. The ramifications include unauthorized access to secrets and keys stored on the affected computer, leading to potential data breaches and loss of sensitive information.

How To Fix

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

npm uninstall typescript-constructors

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

Currently, there are no effective workarounds to mitigate the risks associated with the typescript-constructors package. The only recommended action is to uninstall the package entirely.

Conclusion

The typescript-constructors package has been identified as containing malicious code that poses a significant security risk. Immediate action is required to uninstall the package and secure any sensitive information. Regular monitoring of your open-source dependencies is essential to prevent future vulnerabilities.

See every vulnerability recorded for typescript-constructors →

Share this vulnerability

FAQ

The typescript-constructors package is a utility designed to simplify the creation of constructors in TypeScript, enhancing code efficiency for developers.

The malicious code can compromise your system by allowing unauthorized access to sensitive information, potentially leading to data breaches.

If you have the typescript-constructors package installed, you should uninstall it immediately and rotate any sensitive information stored on the affected system.

No, there is currently no patched version of the typescript-constructors package available to address this vulnerability.

You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

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

npm uninstall typescript-constructors

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