# CVE-2025-5891: Unitech pm2 Config.js redos

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-06-09T19:00:16.482Z
- Modified: 2026-06-17T09:48:57.927Z
- Also known as: GHSA-x5gf-qvw8-r2rm
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- Unitech pm2: 6.0.0; 6.0.1; 6.0.2; 6.0.3; 6.0.4; 6.0.5; 6.0.6
- pm2 (npm): before 7.0.0
- keymetric pm2: up to 6.0.6

## Every score

- VulDB: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 4.3 Medium `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`
- VulDB: CVSS:3.0 4.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:T/RC:R`
- VulDB: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:TF/RC:UR`
- GitHub: CVSS:3.1 4.3 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/Unitech/pm2/pull/5971> (exploit, issue-tracking, patch, web)
- <https://gist.github.com/mmmsssttt404/407e2ffe3e0eaa393ad923a86316a385> (exploit, product, web)
- <https://vuldb.com/?id.311662> (third-party-advisory, vdb-entry, web)
- <https://vuldb.com/?ctiid.311662> (permissions-required, signature, vdb-entry, web)
- <https://vuldb.com/?submit.585750> (third-party-advisory, vdb-entry, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-5891> (advisory)
- <https://github.com/Unitech/pm2/issues/6075> (web)
- <https://github.com/Unitech/pm2/commit/8b9354800a1d157cb9503a3ec414ef1e4700dc1c> (web)
- <https://github.com/Unitech/pm2> (package)
- <https://github.com/Unitech/pm2/blob/ba62cae9b9b7116ee758b70f538919a52515fa26/CHANGELOG.md?plain=1#L36> (web)
- <https://github.com/Unitech/pm2/releases/tag/v7.0.0> (web)

## Sources

- CVE List: [CVE-2025-5891](https://www.cve.org/CVERecord?id=CVE-2025-5891), CVE Terms of Use, modified 2025-06-09
- GitHub Advisory Database: [GHSA-x5gf-qvw8-r2rm](https://github.com/advisories/GHSA-x5gf-qvw8-r2rm), CC-BY-4.0, modified 2026-06-02
- NVD: [CVE-2025-5891](https://nvd.nist.gov/vuln/detail/CVE-2025-5891), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-5891 · Whole record: https://cve.day/CVE-2025-5891.json · Rebuilt by cve.day 2026-11-25T22:58:58.970Z
