Vulnerabilities

Vulnerability · CVE-2021-31402

dio vulnerable to CRLF injection with HTTP method string

Published Mar 21, 2023 · catalog updated Feb 16, 2024 · dio vulnerable to CRLF

Check if you run it

No confirmed exploitation is on record for CVE-2021-31402. EPSS is 1.17%. Act only if a listed version of dio vulnerable to CRLF is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (dio vulnerable to CRLF).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
High7.5
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
1.17%
Remediation
Advisory link
Affected products
Pub dio

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

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • Pub dio0 → 5.0.0

How to fix CVE-2021-31402

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2021-31402. EPSS is 1.17%. Act only if a listed version of dio vulnerable to CRLF is installed.

Which versions are affected?

Compare what you have installed with 0 → 5.0.0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-93. EPSS 1.17%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Mar 21, 2023 · GitHub Advisory Database

    Detected

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

  2. Feb 16, 2024 · GitHub Advisory Database

    Fix available

    dio fixed in 5.0.0

  3. Feb 16, 2024 · GitHub Advisory Database

    Fix available

    dio fixed in 5.0.0

  4. Feb 16, 2024 · GitHub Advisory Database

    Updated

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

Sources

References

Freshness

Last verified in this catalog Oct 16, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.