Vulnerability advisory
GHSA-9324-jv53-9cc8
dio vulnerable to CRLF injection with HTTP method string
Also known as CVE-2021-31402
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected versions
Description
Impact
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.
Patches
The vulnerability has been resolved by https://github.com/cfug/dio/commit/927f79e93ba39f3c3a12c190624a55653d577984, and included since v5.0.0.
Workarounds
Cherry-pick the commit to your own fork can resolves the vulberability too.
References
References
- Webgithub.com/cfug/dio/security/advisories/GHSA-9324-jv53-9cc8 ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-31402 ↗
- Webgithub.com/cfug/dio/issues/1752 ↗
- Webgithub.com/flutterchina/dio/issues/1130 ↗
- Webgithub.com/cfug/dio/commit/927f79e93ba39f3c3a12c190624a55653d577984 ↗
- Packagegithub.com/cfug/dio ↗
- Webosv.dev/GHSA-jwpw-q68h-r678 ↗
- Websecurity.snyk.io/vuln/SNYK-PUB-DIO-5891148 ↗