CVE-2021-43803: Unexpected server crash in Next.js.
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.83496%
CWE
Published
12/7/2021
Updated
3/13/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| next | npm | >= 12.0.0, < 12.0.5 | 12.0.5 |
| next | npm | >= 0.9.9, < 11.1.3 | 11.1.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper input validation in request handling. The GitHub commit 6d98b4f shows added try-catch blocks around the request processing logic in next-server.ts, specifically handling DecodeError and invalid URLs. The patch adds error handling that returns 400 responses instead of allowing crashes. This matches the CWE-20 (Improper Input Validation) classification and the vulnerability description of server crashes from malformed URLs. The handleRequest() function is the entry point for request processing where URL validation occurs, making it the clear vulnerable component before patching.