From 9009c1a116f76c49f0f806b5ff23d382d07c68cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Mon, 16 Nov 2026 01:31:45 +0100 Subject: [PATCH] libxml2_13: fix CVE-2026-76781 --- pkgs/development/libraries/libxml2/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index 96b6611a298e..5894bb2d133f 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -44,6 +44,14 @@ let hash = "sha256-DcPZl6rOuP6aycK+1EHUgPX4YWDAH+ctAZtOI48QO2Q="; excludes = [ "test/catalogs/test.sh" ]; }) + + (fetchpatch { + name = "CVE-2026-76781.patch"; + url = "https://gitlab.gnome.org/GNOME/libxml2/-/commit/c63248941708bc1d2e3a4292954593312212f6ca.patch"; + hash = "sha256-Xz6quAmfKi0tsr3FLpF6w7S1aJUzKhPJ4EW7ig2aL8g="; + # other files are only test related and don't apply cleanly + includes = [ "catalog.c" ]; + }) ]; freezeUpdateScript = true; extraMeta = {