Rust advisories / dotenv_codegen
UnmaintainedRUSTSEC-2021-0142 · dotenv_codegen
RUSTSEC-2021-0142: dotenv is Unmaintained
Short answerNot a bug report: dotenv_codegen is no longer maintained, so future security issues will not be fixed. Plan to move to a maintained alternative.
| Crate | dotenv_codegen |
|---|---|
| Type | Unmaintained |
| Affected versions | Every version. |
| Fixed in | not applicable (the crate is unmaintained) |
| Severity | not scored |
| Published | 2021-12-24 |
| Last changed | 2022-08-30 |
| Also known as | none |
What to do
- Look for a maintained fork or alternative crate.
- If you cannot move yet, acknowledge it in your audit config so CI stays green while you plan: add
"RUSTSEC-2021-0142"toignorein.cargo/audit.tomlordeny.toml, with a comment saying why. - Find who pulls it in:
cargo tree -i dotenv_codegen.
Details from the advisory
dotenv by description is meant to be used in development or testing only.
Using this in production may or may not be advisable.
Alternatives
The below may or may not be feasible alternative(s):
References
- Package: crates.io/crates/dotenv_codegen
- Advisory: rustsec.org/advisories/RUSTSEC-2021-0142.html
- Report: github.com/dotenv-rs/dotenv/issues/74
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?