Skip to content

fix: update diesel to resolve GHSA-h5x4-m2qf-r4f2#3

Open
dannyneira wants to merge 1 commit into
masterfrom
independabot/diesel-GHSA-h5x4-m2qf-r4f2
Open

fix: update diesel to resolve GHSA-h5x4-m2qf-r4f2#3
dannyneira wants to merge 1 commit into
masterfrom
independabot/diesel-GHSA-h5x4-m2qf-r4f2

Conversation

@dannyneira
Copy link
Copy Markdown
Member

Summary

  • Updates the local diesel crate/package metadata and internal path dependency constraints to the patched 2.3.8 range for GHSA-h5x4-m2qf-r4f2.
  • Backports the SQLite text handling safety fix by replacing unchecked UTF-8 conversion with checked str::from_utf8 propagation.
  • Updates libsqlite3-sys constraints to >=0.25.1 so cargo audit no longer reports the bundled SQLite CVE.
  • Adds small compatibility fixes needed to validate this older fork on the current Rust toolchain.

Vulnerability

Dependency details

  • Ecosystem: Rust/Cargo
  • Package: diesel
  • Current vulnerable range: < 2.3.8
  • Patched version: 2.3.8
  • Relationship from alerts: unknown path dependency references in repo manifests
  • Additional audit cleanup: libsqlite3-sys updated from the vulnerable 0.23.x range to >=0.25.1, <0.38.0

Verification

  • RUSTFLAGS='--cap-lints allow' cargo check --manifest-path /workspace/diesel/Cargo.toml -p diesel --features sqlite,chrono
  • RUSTFLAGS='--cap-lints allow' cargo test --manifest-path /workspace/diesel/Cargo.toml -p diesel --features sqlite,chrono
  • (cd /workspace/diesel && cargo audit)

Conversation: https://staging.warp.dev/conversation/9a7fbf37-eb6b-4b99-99ec-dce397f40b98
Run: https://oz.staging.warp.dev/runs/019e3184-22d6-7cd9-a195-410d3c7d142a
This PR was generated with Oz.

Co-Authored-By: Oz <oz-agent@warp.dev>
@dannyneira dannyneira marked this pull request as ready for review May 21, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant