Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. pm2
  4. ›
  5. CVE-2025-5891

CVE-2025-5891: pm2 Regular Expression Denial of Service vulnerability

June 9, 2025 (updated July 11, 2025)

A vulnerability classified as problematic was found in Unitech pm2 up to 6.0.8. This vulnerability affects unknown code of the file /lib/tools/Config.js. The manipulation leads to inefficient regular expression complexity. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.

References

  • gist.github.com/mmmsssttt404/407e2ffe3e0eaa393ad923a86316a385
  • github.com/Unitech/pm2
  • github.com/Unitech/pm2/pull/5971
  • github.com/advisories/GHSA-x5gf-qvw8-r2rm
  • nvd.nist.gov/vuln/detail/CVE-2025-5891
  • vuldb.com/?ctiid.311662
  • vuldb.com/?id.311662
  • vuldb.com/?submit.585750

Code Behaviors & Features

Detect and mitigate CVE-2025-5891 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 up to 6.0.8

Solution

Unfortunately, there is no solution available yet.

Impact 4.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity
  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/pm2/CVE-2025-5891.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 19 Aug 2025 12:19:02 +0000.