CVE-2017-20162 · VulDB
vercel ms index.js parse redos
A vulnerability, which was classified as problematic, has been found in vercel ms up to 1.x. This issue affects the function parse of the file index.js. The manipulation of the argument str leads to inefficient regular expression complexity. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 2.0.0 is able to address this issue. The patch is named caae2988ba2a37765d055c4eee63d383320ee662. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-217451.
Published 2023-01-05, last changed 2026-10-15. Weakness: CWE-1333.
How to fix
Upgrade to a fixed version: ms 2.0.0 (npm). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in vercel/ms by caae2988ba, pull request #89, 9b88d1568a. Functions changed by the fix: parse. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2023-01-05 | Published |
| 2023-01-05 | Package advisory GHSA-w9mr-4mfr-499f |
| 2026-10-15 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.06% |
| 2026-12-03 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-w9mr-4mfr-499f | ms (npm) | 2.0.0 |
Also known as: GHSA-w9mr-4mfr-499f
Credited: VulDB GitHub Commit Analyzer (tool)
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2015-8315 | 2017-01-23 | 7.5 | same package: ms (npm) |
| CVE-2026-133937 | 2026-11-20 | 5.3 | highlight highlight.js Language Grammar livescript.js hljs.highlight redos |
| CVE-2026-120217 | 2026-11-01 | 4.3 | Delgan loguru ANSI Color-Markup _colorizer.py AnsiParser.feed redos |
| CVE-2026-112300 | 2026-10-19 | 6.9 | DiffSK configobj __init__.py _sectionmarker redos |
| CVE-2026-92114 | 2026-09-15 | 6.9 | a2ui-project a2ui Basic Catalog safe_regex.ts redos |
| CVE-2026-11478 | 2026-06-08 | 3.3 | kokke tiny-regex-c Pattern re.c matchstar redos |
| CVE-2026-10692 | 2026-06-03 | 4.3 | johnhuang316 code-index-mcp search_code_advanced is_safe_regex_pattern redos |
| CVE-2026-10691 | 2026-06-03 | 4.3 | wonderwhy-er DesktopCommanderMCP start_search search-manager.ts redos |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-20162, or call /api/v1/vulnerabilities/CVE-2017-20162. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.