Bump i18next-http-backend from 3.0.5 to 4.0.4 #39
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #39"
general
weight: 0.35
mihaimaruseac
Bumps i18next-http-backend from 3.0.5 to 4.0.4.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/i18next/i18next-http-backend/blob/master/CHANGELOG.md">i18next-http-backend's changelog</a>.</em></p>
<blockquote>
<h3>4.0.4</h3>
<p>Security release. See advisory <a href="https://github.com/i18next/i18next-http-backend/security/advisories/GHSA-3cmx-xjww-583x">GHSA-3cmx-xjww-583x</a>.</p>
<ul>
<li>security: also reject <code>&</code>, <code>=</code> and <code>;</code> in <code>lng</code> and <code>ns</code> values. With a query-shaped <code>loadPath</code> / <code>addPath</code> template such as <code>/locales/resources.json?lng={{lng}}&ns={{ns}}</code> (the multiload shape the README documents), a value like <code>de&ns=private&admin=true</code> added or overrode query parameters on the request (HTTP parameter pollution). The 3.0.5 fix only rejected <code>?</code>, which covers the path position. The default <code>/locales/{{lng}}/{{ns}}.json</code> and other path-only templates were not affected. No language code or usable namespace name contains these characters, and <code>+</code>-joined multiload values such as <code>de+en</code> keep working.</li>
</ul>
<h3>4.0.3</h3>
<p>Security release. See advisory <a href="https://github.com/i18next/i18next-http-backend/security/advisories/GHSA-9jhj-wvmw-cfx5">GHSA-9jhj-wvmw-cfx5</a>.</p>
<ul>
<li>security: refuse a request URL that starts with <code>//</code> (or <code>\</code>) when the <code>loadPath</code> / <code>addPath</code> template does not. With a template that puts <code>{{ns}}</code> directly after a leading <code>/</code> (e.g. <code>/{{ns}}/{{lng}}.json</code>), an <code>ns</code> value of <code>/evil.example</code> passed the per-value checks, because a single <code>/</code> is allowed for nested namespaces, but it joined the template's own <code>/</code> into <code>//evil.example/en.json</code>, a protocol-relative URL that browsers send to another origin. The 4.0.2 <code>//</code> check looked at the value only, so it missed this. The interpolated URL is now checked as a whole. The default <code>/locales/{{lng}}/{{ns}}.json</code>, templates with an origin, and protocol-relative CDN templates such as <code>//cdn.example/{{lng}}/{{ns}}.json</code> are not affected and keep working.</li>
</ul>
<h3>4.0.2</h3>
<p>Security release. See advisory <a href="https://github.com/i18next/i18next-http-backend/security/advisories/GHSA-xvq9-wjp8-hwqf">GHSA-xvq9-wjp8-hwqf</a>.</p>
<ul>
<li>security: also reject <code>:</code> in <code>lng</code> and <code>ns</code> values, and <code>//</code> in <code>ns</code> values. With a <code>loadPath</code> / <code>addPath</code> template that <em>starts</em> with the placeholder (e.g. <code>{{lng}}/{{ns}}.json</code> — no origin and no leading <code>/</code>), a value such as <code>http:127.0.0.1:8080</code> was interpolated into an absolute URL and the request left the intended origin (SSRF / URL injection). The default <code>/locales/{{lng}}/{{ns}}.json</code> and every template with a leading path or origin were not affected, because a colon inside a path segment has no structural meaning there. No BCP-47 language code contains <code>:</code>, and <code>:</code> is i18next's default <code>nsSeparator</code>, so no usable namespace name does either — the tightened check has no legitimate collateral.</li>
</ul>
<h3>4.0.1</h3>
<ul>
<li>fix: allow <code>@</code> in <code>ns</code> values so scoped-package-style namespace names such as <code>@organization/package-name</code> fetch correctly again (<a href="https://redirect.github.com/i18next/i18next-http-backend/issues/191">#191</a>). 3.0.6 relaxed the <code>ns</code> check for <code>/</code> but left <code>@</code> in the shared denylist. In the URL path position <code>@</code> is a plain RFC 3986 pchar with no structural meaning; it stays blocked for <code>lng</code>, where it marks the userinfo/authority boundary. Every other pattern from the 3.0.5 advisory (<code>..</code>, <code>\</code>, <code>%</code>, <code>?</code>, <code>#</code>, whitespace, control chars, prototype keys, oversized inputs) remains blocked for both keys.</li>
</ul>
<h3>4.0.0</h3>
<ul>
<li>BREAKING: drop <code>cross-fetch</code> dependency. <code>i18next-http-backend</code> now requires a host-provided <code>fetch</code>. This is available in Node ≥ 18 (stable since Node 21), all modern browsers, Deno, and Bun. For runtimes without native <code>fetch</code>, install a ponyfill yourself and inject it via <code>options.alternateFetch</code>, or stay on v3.x.</li>
<li>BREAKING: minimum Node version is now 18 (<code>engines.node = ">=18"</code>).</li>
<li>chore: simplified environment detection in <code>lib/request.js</code> — uses <code>globalThis</code> (with <code>global</code> / <code>window</code> fallbacks for legacy embedded runtimes) instead of separate <code>global.</code> / <code>window.</code> branches per API. XHR / ActiveXObject are still picked up if the host provides them, but no longer polyfilled.</li>
<li>chore: declared <code>"sideEffects": false</code> for better tree-shaking by downstream bundlers.</li>
<li>build: replaced babel + browserify + uglify-js with <a href="https://tsdown.dev"><code>tsdown</code></a> (rolldown + oxc). One config produces ESM, CJS, and the IIFE browser bundles. Drops <code>@babel/cli</code>, <code>@babel/core</code>, <code>@babel/preset-env</code>, <code>babel-plugin-add-module-exports</code>, <code>browserify</code>, <code>uglify-js</code>, the <code>fixcjs</code> rewrite hack, and the <code>--ignore cross-fetch</code> browserify flag. Side benefit: minified browser bundle shrinks from ~13 KB to ~6.8 KB (oxc minifier + no babel runtime helpers).</li>
<li>build: ESM and CJS outputs are now bundled into a single <code>index.js</code> per format (previously one file per <code>lib/*.js</code> module). The package's <code>exports</code> map is unchanged, so this is invisible to consumers using documented entry points.</li>
<li>lint: replaced <code>eslint-config-standard</code> (+ five plugins) with <a href="https://github.com/neostandard/neostandard"><code>neostandard</code></a> and migrated to ESLint 9 flat config (<code>eslint.config.mjs</code>). Removed deprecated <code>tslint</code> and <code>dtslint</code> — <code>test:typescript</code> now runs <code>tsc --noEmit</code> plus <code>tsd</code>.</li>
<li>chore: tightened <code>.npmignore</code> — published tarball no longer includes the source <code>lib/</code>, the build configs (<code>tsdown.config.ts</code>, <code>eslint.config.mjs</code>, <code>tsconfig.json</code>), or the root <code>index.js</code> re-export shim. Drops from 21.3 KB → ~17 KB packed.</li>
<li>docs: <code>alternateFetch</code> is now documented in the README options block as the supported escape hatch for fetch ponyfills, test mocking, and request interception. v4 migration note added to "Getting started".</li>
</ul>
<h3>3.0.6</h3>
<ul>
<li>fix: allow forward slashes in <code>ns</code> values so nested namespace names (mapping to URL layouts such as <code>/locales/en/a/b.json</code>) fetch correctly again. 3.0.5's security fix applied the same strict URL-segment check to both <code>lng</code> and <code>ns</code>, which was correct for <code>lng</code> (no BCP-47 shape contains <code>/</code>) but over-strict for <code>ns</code> — nested namespaces containing <code>/</code> were never officially supported, but the behaviour fell out of the implicit string-substitution semantics of <code>loadPath</code> and is common enough in the wild to be worth accommodating. <code>isSafeUrlSegment</code> is now split into <code>isSafeLangUrlSegment</code> (strict — still rejects <code>/</code>) and <code>isSafeNsUrlSegment</code> (loose — allows <code>/</code> but still rejects <code>..</code>, <code>\</code>, URL-structure characters, control chars, prototype keys, and oversized inputs). <code>isSafeUrlSegment</code> is kept as a backwards-compatible alias for the strict check. The 3.0.5 security fix remains in force for every concrete attack pattern from the original advisory.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/i18next/i18next-http-backend/commit/c201e7f095d5f92df723bdc9f4c2bd4aed9439d3"><code>c201e7f</code></a> 4.0.4</li>
<li><a href="https://github.com/i18next/i18next-http-backend/commit/b0eef9efd425055c554787cef7f878de33bbf510"><code>b0eef9e</code></a> security: reject <code>&</code>, <code>=</code> and <code>;</code> in lng/ns to close query-parameter injectio...</li>
<li><a href="https://github.com/i18next/i18next-http-backend/commit/8eb66469e3a2123f25574bb454c0c2ebc7ab6ab2"><code>8eb6646</code></a> Bump i18next-http-backend from 3.0.5 to 4.0.2 in /example/fallback (<a href="https://redirect.github.com/i18next/i18next-http-backend/issues/199">#199</a>)</li>
<li><a href="https://github.com/i18next/i18next-http-backend/commit/5d3fd6c470fb8124506091ce4daaf342d24185a0"><code>5d3fd6c</code></a> Bump i18next-http-backend from 3.0.5 to 4.0.2 in /example/node (<a href="https://redirect.github.com/i18next/i18next-http-backend/issues/198">#198</a>)</li>
<li><a href="https://github.com/i18next/i18next-http-backend/commit/e48caf252143a65312aba9efa784de27aa06bb15"><code>e48caf2</code></a> Bump next from 16.3.6 to 16.3.8 in /example/next (<a href="https://redirect.github.com/i18next/i18next-http-backend/issues/197">#197</a>)</li>
<li><a href="https://github.com/i18next/i18next-http-backend/commit/772900cd65e786c3f410f2e2705f84aa81c426af"><code>772900c</code></a> Bump i18next-http-backend from 3.0.5 to 4.0.2 in /example/i18next-vue (<a href="https://redirect.github.com/i18next/i18next-http-backend/issues/196">#196</a>)</li>
<li><a href="https://github.com/i18next/i18next-http-backend/commit/42e86393fd4b8d2fc34f2ddadfa6c3097bf87238"><code>42e8639</code></a> 4.0.3</li>
<li><a href="https://github.com/i18next/i18next-http-backend/commit/042c3d4e4e9d73b2ae3aa76b22cb45d48f1e35b7"><code>042c3d4</code></a> security: reject interpolated URLs that turn into <code>//host</code> (GHSA-9jhj-wvmw-cfx5)</li>
<li><a href="https://github.com/i18next/i18next-http-backend/commit/9b5f1e2f65365d958f9e6459c6e51d0ac9a028fa"><code>9b5f1e2</code></a> Bump i18next-http-backend from 1.2.6 to 4.0.2 in /example/angular (<a href="https://redirect.github.com/i18next/i18next-http-backend/issues/194">#194</a>)</li>
<li><a href="https://github.com/i18next/i18next-http-backend/commit/be8b9a4962a09b4833e630b3cdbd7a380a5b2aff"><code>be8b9a4</code></a> Bump next from 16.3.3 to 16.3.6 in /example/next (<a href="https://redirect.github.com/i18next/i18next-http-backend/issues/193">#193</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/i18next/i18next-http-backend/compare/v3.0.5...v4.0.4">compare view</a></li>
</ul>
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.
</details>