CVE-2025-5891: pm2 Regular Expression Denial of Service vulnerability
(updated )
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.
References
- gist.github.com/mmmsssttt404/407e2ffe3e0eaa393ad923a86316a385
- github.com/Unitech/pm2/blob/ba62cae9b9b7116ee758b70f538919a52515fa26/CHANGELOG.md?plain=1
- github.com/Unitech/pm2/commit/8b9354800a1d157cb9503a3ec414ef1e4700dc1c
- github.com/Unitech/pm2/issues/6075
- github.com/Unitech/pm2/pull/5971
- github.com/Unitech/pm2/releases/tag/v7.0.0
- 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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →