From ce43c5128df882db72a36fbb8fa75d5f2beb2f10 Mon Sep 17 00:00:00 2001 From: Algis Dumbris Date: Wed, 2 Sep 2026 15:47:01 +0300 Subject: [PATCH 1/2] fix(deps): bump transitive dompurify to 3.4.14, closing Dependabot alert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dompurify is pulled in transitively via monaco-editor, which hard-pins it to an exact "3.4.8". The frontend/ Web UI is embedded in the shipped binary via go:embed and DOMPurify sanitises content that can originate from untrusted upstream MCP servers, so a sanitiser bypass here is reachable by a hostile server. Bump the existing dompurify override (already used because the parent pins it) from ^3.4.12 to ^3.4.13, resolving to 3.4.14 — past the fixed version for the "IN_PLACE hook removal leaves a detached subtree executable" advisory (first patched in 3.4.13). --- frontend/package-lock.json | 6 +++--- frontend/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 1c063e622..16f382714 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -2968,9 +2968,9 @@ } }, "node_modules/dompurify": { - "version": "3.4.12", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.12.tgz", - "integrity": "sha512-zQvGet8Z2sWbQhCmfFz/T5QWH2oBmjnqK3qvOjaqaNLrLEF912WamU+ohnTp0TCep/MFVHpdJuCZEdFOdTnEFg==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.14.tgz", + "integrity": "sha512-dVoH9z+MY+C9IilgGCk3YfFqjLi3fChm2OiKJMzh6axrJ5qwxqWaZamgmHrpv22CN/KdbZJuGEGgfQoL00LTdg==", "license": "(MPL-2.0 OR Apache-2.0)", "optionalDependencies": { "@types/trusted-types": "^2.0.7" diff --git a/frontend/package.json b/frontend/package.json index 62f5edf42..5e7aa7d70 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -57,7 +57,7 @@ "vue-tsc": "^3.3.11" }, "overrides": { - "dompurify": "^3.4.12", + "dompurify": "^3.4.13", "brace-expansion": "^5.0.8", "minimatch": "^10.0.3" } From caca07e595f865dfa461a4e544017b5e3ccd5cdb Mon Sep 17 00:00:00 2001 From: Algis Dumbris Date: Wed, 2 Sep 2026 15:51:39 +0300 Subject: [PATCH 2/2] fix(deps): bump frontend brace-expansion to 5.0.9 frontend/ resolved brace-expansion@5.0.8, which is inside the vulnerable range of GHSA-rgw5-rvv9-x895 (>= 4.0.0, < 5.0.9) - DoS via unbounded intermediate arrays. Dependabot raised this advisory against website/package-lock.json but NOT against frontend/package-lock.json, despite the same vulnerable version being resolved there and frontend being the Web UI embedded in the shipped binary via go:embed. The override already existed at ^5.0.8, so this is a one-character pin bump plus the re-lock. Verified: the lockfile integrity for 5.0.9 matches the npm registry's published hash, a clean rm -rf node_modules && npm ci installs from it, npm run build succeeds, and the 108-file / 1175-test unit suite passes. --- frontend/package-lock.json | 35 +++++++++++++++++++++++++++++++---- frontend/package.json | 2 +- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 16f382714..d7d3c3be6 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -743,6 +743,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -759,6 +760,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -775,6 +777,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -791,6 +794,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -807,6 +811,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -823,6 +828,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -839,6 +845,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -855,6 +862,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -871,6 +879,7 @@ "cpu": [ "ppc64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -887,6 +896,7 @@ "cpu": [ "s390x" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -903,6 +913,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -919,6 +930,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -935,6 +947,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -951,6 +964,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -967,6 +981,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2737,9 +2752,9 @@ "license": "ISC" }, "node_modules/brace-expansion": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz", - "integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==", + "version": "5.0.9", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", + "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", "dev": true, "license": "MIT", "dependencies": { @@ -3467,6 +3482,7 @@ "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, @@ -3698,7 +3714,7 @@ "version": "2.7.0", "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", - "devOptional": true, + "dev": true, "license": "MIT", "bin": { "jiti": "lib/jiti-cli.mjs" @@ -5512,6 +5528,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -5532,6 +5549,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -5552,6 +5570,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -5572,6 +5591,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -5592,6 +5612,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -5612,6 +5633,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -5632,6 +5654,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -5652,6 +5675,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -5672,6 +5696,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -5692,6 +5717,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -5712,6 +5738,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ diff --git a/frontend/package.json b/frontend/package.json index 5e7aa7d70..cfc856918 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -58,7 +58,7 @@ }, "overrides": { "dompurify": "^3.4.13", - "brace-expansion": "^5.0.8", + "brace-expansion": "^5.0.9", "minimatch": "^10.0.3" } }