All reports
High

dio vulnerable to CRLF injection with HTTP method string

Affected versions

Dart / Pubdio
Affected versions
< 5.0.0
Fixed version
5.0.0

Exploitation

CVE-2021-31402

Probability of exploitation in the next 30 days: 1.16%

FIRST EPSS · 2026-11-23

Description

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

Links

Credits

  • licy183
  • AlexV525
  • set0x
  • thomas-chauchefoin-sonarsource