CVE-2020-35669: http before 0.13.3 vulnerable to header injection
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.9594%
CWE
Published
5/24/2022
Updated
1/27/2023
KEV Status
No
Technology
Dart
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
http | pub | < 0.13.3 | 0.13.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from the lack of validation on the 'method' parameter in the BaseRequest constructor. The patch added a RegExp validation (_tokenRE) to ensure only valid HTTP token characters are allowed. The pre-patch code in base_request.dart directly assigned 'this.method' without sanitization, making it the clear injection vector. The CWE-74 classification and CRLF injection scenario described in advisories directly implicate this constructor as the vulnerable entry point.