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 = {