From 85d556a2a49d9589a9da2f4a72f1afaf4ab96fce Mon Sep 17 00:00:00 2001 From: Lotus Bot Date: Thu, 21 May 2026 16:17:08 -0400 Subject: [PATCH] =?UTF-8?q?fix(security):=20upgrade=20i18next-http-backend?= =?UTF-8?q?=202.5.2=E2=86=923.0.6=20(path=20traversal=20CVE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes GHSA-q89c-q3h5-w34g: path traversal & URL injection via unsanitised lng/ns parameters. Remaining open issues are all in devDependencies (commitizen/lodash/tmp) or dev-server-only tools (esbuild/vite), with no runtime impact on the production build. Co-Authored-By: Claude Sonnet 4.6 --- package-lock.json | 28 +++++++++++++++------------- package.json | 2 +- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 441267ffa..5fb4a24c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,7 +40,7 @@ "html-react-parser": "4.2.0", "i18next": "23.12.2", "i18next-browser-languagedetector": "8.0.0", - "i18next-http-backend": "2.5.2", + "i18next-http-backend": "3.0.6", "immer": "9.0.16", "is-hotkey": "0.2.0", "jotai": "2.6.0", @@ -7733,6 +7733,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/cross-fetch": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.1.0.tgz", + "integrity": "sha512-uKm5PU+MHTootlWEY+mZ4vvXoCn4fLQxT9dSc1sXVMSFkINTJVN8cAQROpwcKm8bJ/c7rgZVIBWzH5T78sNZZw==", + "license": "MIT", + "dependencies": { + "node-fetch": "^2.7.0" + } + }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", @@ -10670,19 +10679,12 @@ } }, "node_modules/i18next-http-backend": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/i18next-http-backend/-/i18next-http-backend-2.5.2.tgz", - "integrity": "sha512-+K8HbDfrvc1/2X8jpb7RLhI9ZxBDpx3xogYkQwGKlWAUXLSEGXzgdt3EcUjLlBCdMwdQY+K+EUF6oh8oB6rwHw==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/i18next-http-backend/-/i18next-http-backend-3.0.6.tgz", + "integrity": "sha512-mBOqy8993jtqAoj6XaI1XeC/8/9v6EPS+681ziegrPvTB0DoaCY7PpTS0SpY56qLMoS4OI1TZEM2Zf59zNh05w==", + "license": "MIT", "dependencies": { - "cross-fetch": "4.0.0" - } - }, - "node_modules/i18next-http-backend/node_modules/cross-fetch": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", - "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", - "dependencies": { - "node-fetch": "^2.6.12" + "cross-fetch": "4.1.0" } }, "node_modules/iconv-lite": { diff --git a/package.json b/package.json index 9e65ad988..afdd17537 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "html-react-parser": "4.2.0", "i18next": "23.12.2", "i18next-browser-languagedetector": "8.0.0", - "i18next-http-backend": "2.5.2", + "i18next-http-backend": "3.0.6", "immer": "9.0.16", "is-hotkey": "0.2.0", "jotai": "2.6.0",