CVE-2021-31402
HIGH 7.5CVSS 3.1dio vulnerable to CRLF injection with HTTP method string
The dio package 4.0.0 for Dart allows CRLF injection if the attacker controls the HTTP method string, a different vulnerability than CVE-2020-35669.
- Published
- 15 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-74CWE-93
- Also known as
- GHSA-9324-jv53-9cc8
- Sources
- NVDJSONOSV GHSA-9324-jv53-9cc8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | flutterchina | diocpe:2.3:a:flutterchina:dio:*:*:*:*:*:dart:*:* |
>= 4.0.0, < 5.0.0 | 5.0.0 |
| OSV | Pub | dio | < 5.0.0 | 5.0.0 |
References
- https://github.com/flutterchina/dio/issues/1130 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/cfug/dio/security/advisories/GHSA-9324-jv53-9cc8 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-31402 · ADVISORY
- https://github.com/cfug/dio/issues/1752 · WEB
- https://github.com/cfug/dio/commit/927f79e93ba39f3c3a12c190624a55653d577984 · WEB
- https://github.com/cfug/dio · PACKAGE
- https://osv.dev/GHSA-jwpw-q68h-r678 · WEB
- https://security.snyk.io/vuln/SNYK-PUB-DIO-5891148 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 15 Apr 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 21 Mar 2023)