{"id":"CVE-2021-31402","aliases":["GHSA-9324-jv53-9cc8"],"url":"https://o3.security/vulnerability/CVE-2021-31402","summary":"dio vulnerable to CRLF injection with HTTP method string","details":"### 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","published":"2021-04-15T19:15:12.673Z","modified":"2026-07-08T22:13:43.889765Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":{"score":0.01167,"percentile":0.64478,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Pub","name":"dio","fixedVersion":"5.0.0"}],"fix":{"url":"https://github.com/cfug/dio/commit/927f79e93ba39f3c3a12c190624a55653d577984","label":"cfug/dio@927f79e"},"references":[{"type":"REPORT","url":"https://github.com/flutterchina/dio/issues/1130"},{"type":"WEB","url":"https://github.com/cfug/dio/security/advisories/GHSA-9324-jv53-9cc8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31402"},{"type":"WEB","url":"https://github.com/cfug/dio/issues/1752"},{"type":"WEB","url":"https://github.com/cfug/dio/commit/927f79e93ba39f3c3a12c190624a55653d577984"},{"type":"PACKAGE","url":"https://github.com/cfug/dio"},{"type":"WEB","url":"https://osv.dev/GHSA-jwpw-q68h-r678"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-PUB-DIO-5891148"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T22:13:43.889765Z"}}