Vulnerability · Published Jun 9, 2025 · Assigned by VulDB
CVE-2025-5891Unitech pm2 Config.js redos
Medium 4.3
In plain English
A medium-severity regular-expression denial of service in pm2 from Unitech. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A vulnerability classified as problematic was found in Unitech pm2 up to 6.0.6. 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | pm2 | 7.0.0 | GHSA-x5gf-qvw8-r2rm |
Affected products (as reported)
Weakness: CWE-1333, CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:T/RC:R
References
- VDB-311662 | Unitech pm2 Config.js redos vdb-entry
- VDB-311662 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- Submit #585750 | pm2 6.0.6 Inefficient Regular Expression Complexity third-party-advisory
- https://github.com/Unitech/pm2/pull/5971 issue-tracking
- https://gist.github.com/mmmsssttt404/407e2ffe3e0eaa393ad923a86316a385 exploit