From 932ddcf72e480ae8f7effdfc70b321af3d6255d3 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 16 Dec 2023 12:28:29 +0000 Subject: [PATCH] libsass: add patch for CVE-2022-26592, CVE-2022-43357 & CVE-2022-43358 (cherry picked from commit 38d918c0fe7b659070fd5818ab3e361807aca28b) --- pkgs/development/libraries/libsass/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libsass/default.nix b/pkgs/development/libraries/libsass/default.nix index f4293952b9f4..6c3a5b5cce3f 100644 --- a/pkgs/development/libraries/libsass/default.nix +++ b/pkgs/development/libraries/libsass/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, autoreconfHook }: +{ lib, stdenv, fetchFromGitHub, autoreconfHook, fetchpatch }: stdenv.mkDerivation rec { pname = "libsass"; @@ -16,6 +16,14 @@ stdenv.mkDerivation rec { ''; }; + patches = [ + (fetchpatch { + name = "CVE-2022-26592.CVE-2022-43357.CVE-2022-43358.patch"; + url = "https://github.com/sass/libsass/pull/3184/commits/5bb0ea0c4b2ebebe542933f788ffacba459a717a.patch"; + hash = "sha256-DR6pKFWL70uJt//drzq34LeTzT8rUqgUTpgfUHpD2s4="; + }) + ]; + preConfigure = '' export LIBSASS_VERSION=${version} '';