Skip to content

[repo-monitor] Medium: Unmaintained dotenv crate (v0.15, last updated 2019) #7

@Liohtml

Description

@Liohtml

Summary

The project depends on the dotenv crate at v0.15.0, which has been unmaintained since 2019. The actively maintained fork is dotenvy.

Location

  • File: Cargo.toml
  • Line(s): 15

Severity

Medium

Details

The dotenv crate (last published 2019) is officially unmaintained. It has known parsing limitations (no multi-line values, no \n escape in quoted values) and has had no security patches in 6 years. Using an unmaintained crate that handles credential loading is against security best practices.

Suggested Fix

Replace in Cargo.toml:

# Before:
dotenv = "0.15"
# After:
dotenvy = "0.15"

Update the import:

// Before: dotenv::dotenv().ok();
// After:  dotenvy::dotenv().ok();

Automated finding by repo-monitor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions