From 4d0f706a1a3457bc0d08c461d41697db23d3f1a1 Mon Sep 17 00:00:00 2001 From: Richard Gebhardt Date: Thu, 14 Mar 2024 00:57:03 -0400 Subject: [PATCH] Address security findings * javascript/InsecureHash Signed-off-by: Richard Gebhardt --- .../config/webpack/persistentCache/createEnvironmentHash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_wisdom_console_react/config/webpack/persistentCache/createEnvironmentHash.js b/ansible_wisdom_console_react/config/webpack/persistentCache/createEnvironmentHash.js index 4b482c37e..b0e6fdad4 100644 --- a/ansible_wisdom_console_react/config/webpack/persistentCache/createEnvironmentHash.js +++ b/ansible_wisdom_console_react/config/webpack/persistentCache/createEnvironmentHash.js @@ -2,7 +2,7 @@ const { createHash } = require("crypto"); module.exports = (env) => { - const hash = createHash("md5"); + const hash = createHash("sha256"); hash.update(JSON.stringify(env)); return hash.digest("hex");