# CVE-2021-31402: dio vulnerable to CRLF injection with HTTP method string

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.16%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-15T18:18:52.000Z
- Modified: 2026-06-17T03:51:42.723Z
- Also known as: GHSA-9324-jv53-9cc8
- Weaknesses: CWE-74, CWE-93
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- dio (Pub): before 5.0.0
- flutterchina dio: from 4.0.0 before 5.0.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/flutterchina/dio/issues/1130> (exploit, issue-tracking, third-party-advisory, web)
- <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/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)

## Sources

- CVE List: [CVE-2021-31402](https://www.cve.org/CVERecord?id=CVE-2021-31402), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-9324-jv53-9cc8](https://github.com/advisories/GHSA-9324-jv53-9cc8), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-31402](https://nvd.nist.gov/vuln/detail/CVE-2021-31402), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31402 · Whole record: https://cve.day/CVE-2021-31402.json · Rebuilt by cve.day 2026-11-25T22:58:00.838Z
