CVE-2021-23429: Uncontrolled Resource Consumption in transpile

transpile Updated 02 Oct 2025

Summary

02/09/2021
No i
Moderate
6.5

CVE-2021-23429: Uncontrolled Resource Consumption in transpile. Affects transpile versions < 2.7.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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The transpile package is an npm package used for transpiling code. It provides a function called .to() that is responsible for transpiling the code. The package is vulnerable to a Denial of Service (DoS) attack due to a lack of input sanitization or whitelisting, combined with improper exception handling in the .to() function.

Vulnerability Detail

The vulnerability in the transpile package allows an attacker to consume excessive resources, leading to a Denial of Service (DoS) condition. This can be exploited by providing specially crafted input to the .to() function, causing the transpilation process to consume excessive CPU or memory resources. The lack of input sanitization or whitelisting allows the attacker to trigger this vulnerability. The impact of this vulnerability can result in the unavailability of the transpile service, affecting the availability of the application or system that relies on it.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, developers can implement input validation and sanitization before passing the input to the .to() function. By carefully validating and sanitizing the input, developers can reduce the risk of triggering the vulnerability. Here's an example of how input validation can be implemented in JavaScript:

function validateInput(input) {
  // Perform input validation and sanitization
  // ...
  return sanitizedInput;
}

const sanitizedInput = validateInput(userInput);
transpile.to(sanitizedInput);

Conclusion

The transpile package is vulnerable to a Denial of Service (DoS) attack due to a lack of input sanitization or whitelisting, combined with improper exception handling. To mitigate this vulnerability, it is recommended to update the transpile package to version 2.7.3 or later. Developers can also implement input validation and sanitization as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for transpile →

Share this vulnerability

FAQ

The vulnerability can lead to a Denial of Service (DoS) condition, causing the transpile service to consume excessive resources and potentially making it unavailable. This can impact the availability of the application or system that relies on the transpile package.

To mitigate this vulnerability, it is recommended to update the transpile package to version 2.7.3 or later. This version includes a fix for the vulnerability. Additionally, implementing input validation and sanitization can reduce the risk of triggering the vulnerability.

Yes, all versions of the transpile package up to and including version 2.7.2 are affected by this vulnerability. It is important to update to version 2.7.3 or later to mitigate the issue.

Yes, developers can implement input validation and sanitization before passing the input to the .to() function. By carefully validating and sanitizing the input, the risk of triggering the vulnerability can be reduced.

You can find more information about the vulnerability in the GitHub Security Advisory database. The vulnerability is tracked under the identifier GHSA-7xrj-f5rp-j55h.

How To Fix

No fixed version is published for this vulnerability.

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