diff --git a/Cargo.lock b/Cargo.lock
index 13f89d645b4d3b8c56e8503b065e3feb817c96ff..2e0de32bc6e0d523e991508438d29589108d4bb8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -17611,7 +17611,7 @@ version = "0.27.0"
 dependencies = [
  "parity-scale-codec",
  "parking_lot 0.12.1",
- "rand 0.7.3",
+ "rand 0.8.5",
  "rand_chacha 0.2.2",
  "sp-core",
  "sp-externalities 0.19.0",
diff --git a/substrate/primitives/keystore/Cargo.toml b/substrate/primitives/keystore/Cargo.toml
index 819b2c518a0d4f7de02ff92afaa328bb0a3edad0..dcfb272c11a94ecb65f35688546d73bbdf6542e9 100644
--- a/substrate/primitives/keystore/Cargo.toml
+++ b/substrate/primitives/keystore/Cargo.toml
@@ -20,7 +20,7 @@ sp-core = { path = "../core", default-features = false }
 sp-externalities = { path = "../externalities", default-features = false }
 
 [dev-dependencies]
-rand = "0.7.2"
+rand = "0.8.5"
 rand_chacha = "0.2.2"
 
 [features]
diff --git a/substrate/utils/frame/benchmarking-cli/Cargo.toml b/substrate/utils/frame/benchmarking-cli/Cargo.toml
index b6eca132067fb06b13298f2270e547e9fc0b5d0c..e88eb60ee630f98e19c3d04ad0021c82d68d82ed 100644
--- a/substrate/utils/frame/benchmarking-cli/Cargo.toml
+++ b/substrate/utils/frame/benchmarking-cli/Cargo.toml
@@ -24,7 +24,7 @@ itertools = "0.10.3"
 lazy_static = "1.4.0"
 linked-hash-map = "0.5.4"
 log = "0.4.17"
-rand = { version = "0.8.4", features = ["small_rng"] }
+rand = { version = "0.8.5", features = ["small_rng"] }
 rand_pcg = "0.3.1"
 serde = "1.0.193"
 serde_json = "1.0.108"