GitHub Advisoryadvisory · Pub
GHSA-9324-jv53-9cc8 dio vulnerable to CRLF injection with HTTP method string
HIGH
Official page ↗
- Aliases
- CVE-2021-31402
- Ecosystem
- Pub
- Packages
- dio
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-93
- Reviewed
- 2023-03-21
Affected packages
• Pub dio: < 5.0.0 → fixed in 5.0.0
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
• https://nvd.nist.gov/vuln/detail/CVE-2021-31402
• https://osv.dev/GHSA-jwpw-q68h-r678
• https://github.com/cfug/dio/issues/1130
• https://github.com/cfug/dio/issues/1752
Related
Alias · CVE (1)
- CVE-2021-31402 The dio package 4.0.0 for Dart allows CRLF injection if the attacker controls the HTTP method string, a different vulnerability than… vulnerability
Weakness · CWE (1)
- CWE-93 Improper Neutralization of CRLF Sequences weakness
References
- 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/flutterchina/dio/issues/1130 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