CVE-2022-1929: Regular Expression Denial of Service in devcert

devcert Updated 02 Oct 2025

Summary

03/06/2022
Yes i
High
7.5

CVE-2022-1929: Regular expression denial of service in devcert. Affects devcert versions < 1.2.1. Fixed in 1.2.1. 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

devcert is an npm package that provides a convenient way to generate and manage SSL/TLS certificates for development purposes. It is commonly used by developers to enable HTTPS on local development environments. The package offers a certificateFor method that allows users to generate certificates. However, a vulnerability has been discovered in devcert that can lead to a denial of service (DoS) attack when an attacker is able to supply arbitrary input to the certificateFor method.

Vulnerability Detail

The vulnerability in devcert is an exponential ReDoS (Regular Expression Denial of Service) issue. This type of vulnerability occurs when a regular expression pattern is susceptible to excessive backtracking, leading to a significant slowdown or even a complete freeze of the application. In the case of devcert, an attacker can exploit this vulnerability by providing specially crafted input to the certificateFor method, causing the application to consume excessive CPU resources and potentially become unresponsive. This can result in a denial of service, impacting the availability of the affected application.

How To Fix

Latest published version: 1.2.3 as of 23 Oct 2026

npm install devcert@1.2.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.2.1

This is the first release that contains the fix.

npm install devcert@1.2.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to update to the latest version of devcert as soon as possible.

Conclusion

The devcert package is vulnerable to a Regular Expression Denial of Service (ReDoS) attack. It is crucial for developers to update to the latest version of devcert (1.2.1 or later) to mitigate the risk of a denial of service. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for devcert →

Share this vulnerability

FAQ

devcert is an npm package that provides SSL/TLS certificate generation and management for development environments.

A ReDoS attack occurs when a regular expression pattern can be exploited to cause excessive backtracking, leading to a denial of service.

An attacker can exploit this vulnerability by providing specially crafted input to the certificateFor method in devcert, causing excessive CPU usage and potentially a denial of service.

The vulnerability can result in a denial of service, impacting the availability of the affected application.

To fix this vulnerability, update the devcert package to version 1.2.1 or later.

Related vulnerabilities

Recent vulnerabilities recorded for devcert.

How To Fix

Latest published version: 1.2.3 as of 23 Oct 2026

npm install devcert@1.2.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.2.1

This is the first release that contains the fix.

npm install devcert@1.2.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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