{"id":"CVE-2021-31402","aliases":["CVE-2021-31402","GHSA-9324-jv53-9cc8"],"related":[],"kind":"vulnerability","state":"published","title":"dio vulnerable to CRLF injection with HTTP method string","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete dio versión 4.0.0 para Dart, permite una inyección CRLF si el atacante controla la cadena del método HTTP, una vulnerabilidad diferente de CVE-2020-35669","source":"nvd"}],"published":"2021-04-15T18:18:52.000Z","modified":"2026-06-17T03:51:42.723Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-74","CWE-93"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.0.0"}],"ecosystem":"Pub","package":"dio","purl":"pkg:pub/dio","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"5.0.0"}],"vendor":"flutterchina","product":"dio","cpe":"cpe:2.3:a:flutterchina:dio:*:*:*:*:*:dart:*:*","source":"nvd"}],"references":[{"url":"https://github.com/flutterchina/dio/issues/1130","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cfug/dio/security/advisories/GHSA-9324-jv53-9cc8","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31402","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cfug/dio/issues/1752","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cfug/dio/commit/927f79e93ba39f3c3a12c190624a55653d577984","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cfug/dio","tags":["package"],"sources":["ghsa"]},{"url":"https://osv.dev/GHSA-jwpw-q68h-r678","tags":["web"],"sources":["ghsa"]},{"url":"https://security.snyk.io/vuln/SNYK-PUB-DIO-5891148","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-31402","url":"https://www.cve.org/CVERecord?id=CVE-2021-31402","licence":"CVE Terms of Use","modified":"2024-08-03T22:55:53.702Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9324-jv53-9cc8","url":"https://github.com/advisories/GHSA-9324-jv53-9cc8","licence":"CC-BY-4.0","modified":"2024-02-16T08:19:11.352Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-31402","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31402","licence":"Public domain","modified":"2026-06-17T03:51:42.723Z"}],"updatedAt":"2026-11-25T22:58:00.838Z","epss":{"score":0.01158,"percentile":0.67982,"date":"2026-12-01T12:00:22.000Z"}}