pm2 Regular Expression Denial of Service vulnerability
A vulnerability classified as problematic was found in Unitech pm2 prior to 7.0.0. 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | pm2 | < 7.0.0 | 7.0.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-5891
- https://github.com/Unitech/pm2/issues/6075
- https://github.com/Unitech/pm2/pull/5971
- https://github.com/Unitech/pm2/commit/8b9354800a1d157cb9503a3ec414ef1e4700dc1c
- https://gist.github.com/mmmsssttt404/407e2ffe3e0eaa393ad923a86316a385
- https://github.com/Unitech/pm2
- https://github.com/Unitech/pm2/blob/ba62cae9b9b7116ee758b70f538919a52515fa26/CHANGELOG.md?plain=1#L36
- https://github.com/Unitech/pm2/releases/tag/v7.0.0
- https://vuldb.com/?ctiid.311662
- https://vuldb.com/?id.311662
- https://vuldb.com/?submit.585750
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L- Weakness (CWE)
CWE-1333, CWE-400- Platform
- npm
- Package
pm2- Disclosed
- 09.06.2025
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-x5gf-qvw8-r2rm - CC BY 4.0
Vulnerability history: pm2
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.