From d0ff7e29266abdaf941582949ceedb88d9bb72d5 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Mon, 17 Jul 2023 23:52:11 +0200 Subject: [PATCH] uptime-kuma: apply patch for CVE-2023-36821 and CVE-2023-36822 --- pkgs/servers/monitoring/uptime-kuma/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/monitoring/uptime-kuma/default.nix b/pkgs/servers/monitoring/uptime-kuma/default.nix index 705a9665b5e9..5a96ef9499c5 100644 --- a/pkgs/servers/monitoring/uptime-kuma/default.nix +++ b/pkgs/servers/monitoring/uptime-kuma/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, buildNpmPackage, python3, nodejs, nixosTests }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, buildNpmPackage, python3, nodejs, nixosTests }: buildNpmPackage rec { pname = "uptime-kuma"; @@ -11,12 +11,17 @@ buildNpmPackage rec { sha256 = "sha256-hNtD8R8nDwO+uJ5WD8TxaCyYD7ESvBPmcv7iT7NAu6s="; }; - npmDepsHash = "sha256-yPUVLtqfowSuvrzp4Edcsussaxao5Ti1/sLsd9lmiSM="; + npmDepsHash = "sha256-GEYu04yZkLNwFG4sYujqIRU4ZCTXm4OYAydXEy4lEiA="; patches = [ # Fixes the permissions of the database being not set correctly # See https://github.com/louislam/uptime-kuma/pull/2119 ./fix-database-permissions.patch + (fetchpatch { + name = "CVE-2023-36821-CVE-2023-36822.patch"; + url = "https://github.com/louislam/uptime-kuma/commit/a0736e04b2838aae198c2110db244eab6f87757b.patch"; + hash = "sha256-uTgxc1U/ILdSzZda8XQZlxRT5vY2qVkj1J1WcOali/0="; + }) ]; nativeBuildInputs = [ python3 ];