{"id":"CVE-2021-31402","aliases":["EUVD-2023-0955","GHSA-9324-jv53-9cc8"],"status":"published","title":"dio vulnerable to CRLF injection with HTTP method string","description":"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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01167,"percentile":0.6757,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-74","CWE-93"],"published":"2021-04-15T18:18:52Z","modified":"2026-10-20T10:54:40Z","fixes":[{"ecosystem":"Pub","package":"dio","fixed_in":["5.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Pub","package":"dio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}]},{"source":"osv","ecosystem":"Pub","package":"dio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}],"versions":["0.0.1","0.0.10","0.0.11","0.0.12","0.0.13","0.0.14","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.0.9","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","1.0.0","1.0.1","1.0.10","1.0.11","1.0.12","1.0.13","1.0.14","1.0.15","1.0.16","1.0.17","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","2.0.0","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.0.19","2.0.2","2.0.20","2.0.21","2.0.22","2.0.23","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.1","2.1.10","2.1.11","2.1.12","2.1.13","2.1.14","2.1.15","2.1.16","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.1.7","2.1.8","2.1.9","2.2.0","2.2.1","2.2.2","3.0.0","3.0.0-dev.1","3.0.1","3.0.10","3.0.2","3.0.2-dev.1","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.8-dev.1","3.0.9","4.0.0","4.0.0-beta1","4.0.0-beta2","4.0.0-beta3","4.0.0-beta4","4.0.0-beta5","4.0.0-beta6","4.0.0-beta7","4.0.0-prev1","4.0.0-prev2","4.0.0-prev3","4.0.1","4.0.2","4.0.2-beta1","4.0.3","4.0.4","4.0.5","4.0.5-beta1","4.0.6"]}],"products":[{"vendor":"flutterchina","product":"dio"}],"references":[{"url":"https://github.com/flutterchina/dio/issues/1130","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/cfug/dio/security/advisories/GHSA-9324-jv53-9cc8","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31402","tags":["advisory"]},{"url":"https://github.com/cfug/dio/issues/1752","tags":["web"]},{"url":"https://github.com/cfug/dio/commit/927f79e93ba39f3c3a12c190624a55653d577984","tags":["web"]},{"url":"https://osv.dev/GHSA-jwpw-q68h-r678","tags":["web"]},{"url":"https://security.snyk.io/vuln/SNYK-PUB-DIO-5891148","tags":["web"]},{"url":"https://github.com/advisories/GHSA-9324-jv53-9cc8"},{"url":"https://github.com/cfug/dio","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-31402","description":"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.","status":"published","published":"2021-04-15T18:18:52Z","modified":"2024-08-03T22:55:53.702Z","updated_at":"2026-11-02T14:33:05.665371Z"}],"euvd":[{"id":"EUVD-2023-0955","description":"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.","status":"published","published":"2021-04-15T18:18:52Z","modified":"2024-08-03T22:55:53Z","updated_at":"2026-11-03T03:24:38.977347Z"}],"ghsa":[{"id":"GHSA-9324-jv53-9cc8","title":"dio vulnerable to CRLF injection with HTTP method string","description":"### Impact\nThe 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.\n\n### Patches\nThe vulnerability has been resolved by https://github.com/cfug/dio/commit/927f79e93ba39f3c3a12c190624a55653d577984, and included since v5.0.0.\n\n### Workarounds\nCherry-pick the commit to your own fork can resolves the vulberability too.\n\n### References\n- https://nvd.nist.gov/vuln/detail/CVE-2021-31402\n- https://osv.dev/GHSA-jwpw-q68h-r678\n- https://github.com/cfug/dio/issues/1130\n- https://github.com/cfug/dio/issues/1752\n","status":"published","published":"2023-03-21T22:41:11Z","modified":"2023-10-05T14:01:00Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-93"],"updated_at":"2026-11-02T14:37:07.641671Z"}],"nvd":[{"id":"CVE-2021-31402","description":"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.","status":"published","published":"2021-04-15T19:15:12.673Z","modified":"2026-06-17T03:51:42.723Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:06:52.03307Z"}],"osv":[{"id":"CVE-2021-31402","description":"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.","status":"published","published":"2021-04-15T19:15:12.673Z","modified":"2026-10-20T10:54:40.496067469Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:19.483607Z"},{"id":"GHSA-9324-jv53-9cc8","title":"dio vulnerable to CRLF injection with HTTP method string","description":"### Impact\nThe 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.\n\n### Patches\nThe vulnerability has been resolved by https://github.com/cfug/dio/commit/927f79e93ba39f3c3a12c190624a55653d577984, and included since v5.0.0.\n\n### Workarounds\nCherry-pick the commit to your own fork can resolves the vulberability too.\n\n### References\n- https://nvd.nist.gov/vuln/detail/CVE-2021-31402\n- https://osv.dev/GHSA-jwpw-q68h-r678\n- https://github.com/cfug/dio/issues/1130\n- https://github.com/cfug/dio/issues/1752\n","status":"published","published":"2023-03-21T22:41:11Z","modified":"2024-02-16T08:19:11.352648Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-93"],"updated_at":"2026-11-02T15:46:43.123867Z"}]}}
