Critical Malicious Code Vulnerability in transform-charcodes Package

transform-charcodes Updated 18 Mar 2026

Summary

18/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1559: Malicious code in transform-charcodes (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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The transform-charcodes package is an npm library designed to convert character codes in strings, facilitating text manipulation and encoding tasks. It is commonly used in various JavaScript applications for handling character data. However, this package has been identified as containing malicious code, posing a significant security risk to any system utilizing it.

Vulnerability Detail

The vulnerability originates from the presence of embedded malicious code within the transform-charcodes package. This code can compromise any computer that has the package installed, potentially allowing unauthorized access to sensitive information, such as secrets and keys. The malicious nature of this code means that simply removing the package may not eliminate all traces of the compromise, as full control of the affected system may have been granted to an external entity.

How To Fix

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

npm uninstall transform-charcodes

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. If you need similar functionality, consider using alternative libraries that do not have known security issues.

Conclusion

The transform-charcodes package has been identified as containing malicious code, posing a severe risk to any system using it. Immediate removal of the package and rotation of sensitive information are critical steps to mitigate the threat. Users are encouraged to utilize tools like Vulert to monitor for vulnerabilities in their applications.

See every vulnerability recorded for transform-charcodes →

Share this vulnerability

FAQ

You should remove the transform-charcodes package immediately and rotate any sensitive information stored on the affected system.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

While removing the package is essential, there is no guarantee that all malicious software will be eliminated. It is advisable to perform a thorough security audit of the affected system.

Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and compromise of the entire system.

Yes, consider using other libraries that provide similar functionality without known vulnerabilities. Always review the security status of packages before installation.

How To Fix

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

npm uninstall transform-charcodes

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.