Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. devcert
  4. ›
  5. CVE-2022-1929

CVE-2022-1929: Regular expression denial of service in devcert

June 2, 2022 (updated July 24, 2023)

An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the devcert npm package, when an attacker is able to supply arbitrary input to the certificateFor method

References

  • github.com/advisories/GHSA-fp36-299x-pwmw
  • github.com/davewasmer/devcert/commit/b0763215f6683271d296fda98f7ef7bcd4a55977
  • nvd.nist.gov/vuln/detail/CVE-2022-1929
  • research.jfrog.com/vulnerabilities/devcert-redos-xray-211352/

Code Behaviors & Features

Detect and mitigate CVE-2022-1929 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.1

Fixed versions

  • 1.2.1

Solution

Upgrade to version 1.2.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/devcert/CVE-2022-1929.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:38 +0000.