fix(deps): update dependency next-intl to ^4.9.2 [security] - #139
Open
renovate[bot] wants to merge 1 commit into
Open
fix(deps): update dependency next-intl to ^4.9.2 [security]#139renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
8 times, most recently
from
April 21, 2026 23:05
dbd3c5f to
7d62216
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
3 times, most recently
from
April 29, 2026 18:19
544267b to
86cc70e
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
April 29, 2026 23:41
86cc70e to
0e38d1e
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
2 times, most recently
from
April 30, 2026 17:58
cc4ce14 to
8307184
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
May 6, 2026 21:18
8307184 to
6e4bcbf
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
May 12, 2026 10:44
6e4bcbf to
acdcca0
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
May 12, 2026 17:54
acdcca0 to
8ea95ba
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
2 times, most recently
from
May 14, 2026 22:06
24dbf4c to
d804333
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
May 18, 2026 16:51
d804333 to
cdbe967
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
2 times, most recently
from
May 28, 2026 23:55
8fa2662 to
6a24405
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
June 21, 2026 23:49
6a24405 to
248e27f
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
June 22, 2026 01:49
248e27f to
8c01a02
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
July 12, 2026 12:58
8c01a02 to
80a8a9c
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
July 12, 2026 20:16
80a8a9c to
453aca5
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
2 times, most recently
from
July 21, 2026 01:56
9d43b94 to
2cdb040
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
July 21, 2026 07:46
2cdb040 to
27ee27c
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
July 22, 2026 11:02
27ee27c to
dff1820
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
July 22, 2026 16:21
dff1820 to
222145e
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
July 24, 2026 18:10
222145e to
bc49afb
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
July 24, 2026 23:46
bc49afb to
2a69841
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
July 30, 2026 18:47
2a69841 to
547dbcf
Compare
renovate
Bot
force-pushed
the
renovate/npm-next-intl-vulnerability
branch
from
July 30, 2026 22:38
547dbcf to
e0660b1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.1.0→^4.9.2^4.3.12→^4.9.2next-intl has an open redirect vulnerability
CVE-2026-40299 / GHSA-8f24-v5vv-gm5j
More information
Details
Impact
Applications using the
next-intlmiddleware withlocalePrefix: 'as-needed'could construct URLs where path handling and the WHATWG URL parser resolved a relative redirect target to another host (e.g. scheme-relative//or control characters stripped by the URL parser), so the middleware could redirect the browser off-site while the user still started from a trusted app URL.Patches
The problem has been patched, please update to
next-intl@4.9.1.Credits
Many thanks to Joni Liljeblad from Oura for responsibly disclosing the vulnerability and for suggesting the fix.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
next-intl has prototype pollution with
experimental.messages.precompilevia attacker-controlled translation catalog keysGHSA-4c35-wcg5-mm9h
More information
Details
Summary
setNestedPropertyinpackages/next-intl/src/extractor/utils.tsxwalks a dotted key path and assigns the final value without blocking the reserved keys__proto__,constructor, orprototype. When the next-intl Next.js plugin is configured withexperimental.messagesandmessages.precompile: true, a JSON translation catalog containing a top‑level__proto__key causessetNestedProperty(result, '__proto__.isAdmin', compiledMessage)to assign ontoObject.prototype, polluting every object in the running build process.Details
Root cause —
packages/next-intl/src/extractor/utils.tsx:13-34:The existence check
!(key in current)uses theinoperator, which walks the prototype chain. Forkey === '__proto__','__proto__' in {}istrue(it's inherited fromObject.prototype) andtypeof current['__proto__'] === 'object'(it isObject.prototype). The guard therefore never re-initializescurrent[key], andcurrent = current['__proto__']redirects all subsequent writes ontoObject.prototype. The final assignmentcurrent[keys[keys.length-1]] = valuesetsObject.prototype[<attacker key>] = <attacker value>.Build-time data flow:
packages/next-intl/src/plugin/catalog/catalogLoader.tsx:55-83— the webpack/turbopack loader receives the catalog filesourceand, ifoptions.messages.precompileis enabled, callscodec.decode(source, {locale}).packages/next-intl/src/extractor/format/codecs/JSONCodec.tsx:9-18—decoderunsJSON.parse(source). V8 installs__proto__as an own data property on the result when the JSON key is literally"__proto__"(bypassing the normalObject.prototype.__proto__setter that would otherwise reassign the prototype).JSONCodec.tsx:33-53—traverseMessagesiteratesObject.keys(obj), which for a JSON‑parsed object includes the own__proto__key. It readsobj.__proto__(returns the attacker’s nested object, notObject.prototype, because it's an own property), recurses into it, and emits message id__proto__.isAdmin.catalogLoader.tsx:71—precompileMessages(decoded, cache).catalogLoader.tsx:89-131— for each message, callssetNestedProperty(result, message.id, compiledMessage). Withmessage.id === '__proto__.isAdmin',setNestedPropertywalks intoObject.prototypeand assignsObject.prototype.isAdmin = compiledMessage.The same sink is also reachable via
JSONCodec.encode(JSONCodec.tsx:20-26) andPOCodec(packages/next-intl/src/extractor/format/codecs/POCodec.tsx:87) during extraction, both of which feed attacker-influencedmessage.idvalues intosetNestedProperty— but those paths require control of source-code identifiers, which is a weaker attack vector than the build-time catalog path above.After pollution, every subsequent object access during the remainder of the Next.js build pipeline (webpack, turbopack, babel, next-intl’s own logic) inherits the attacker-controlled properties. This is a classic gadget-chain precondition for corrupting build-tool internals and tampering with generated bundles, since many build tools use patterns like
if (obj.someFlag)oroptions[key] ?? defaultthat are sensitive to polluted prototypes.Trust boundary note: next-intl’s message catalogs are realistically attacker-influenced in practice. Translation files are routinely round-tripped through external TMS systems (Crowdin, Lokalise, Transifex), accepted via community locale PRs, or pulled from third-party translation packages — any of which can carry a crafted
__proto__key unnoticed, since JSON translation diffs are usually merged with minimal scrutiny.PoC
Prerequisites: a Next.js project using next-intl ≤ 4.9.1 with the Next.js plugin configured:
Drop a malicious catalog at
messages/en.json:{ "Greeting": "Hello", "__proto__": { "isAdmin": "polluted" } }Run
next build(ornext dev). ThecatalogLoaderwill invokeJSONCodec.decode→traverseMessages→precompileMessages→setNestedProperty.Minimal reproduction of the sink itself (verified locally against the v4.9.1 source):
Output:
PWNED.Full chain reproduction (also verified):
After the loader runs,
({}).isAdmin === 'polluted'for the remainder of the build Node process.Impact
Object.prototypeis polluted for the lifetime of the build‑time Node.js process, affecting every object created or inspected thereafter in the Next.js build pipeline (webpack/turbopack loaders, babel plugins, next-intl’s own codecs, user plugins).obj.someFlag,options[key] ?? default,if (!config.noX), etc. can be coerced into unintended behavior, including emitting tampered bundles.experimental.messages+precompileconfiguration. Users who do not use the extractor/precompile features are not affected.Recommended Fix
Reject reserved keys in
setNestedPropertyand stop using theinoperator for the existence check. A minimal patch topackages/next-intl/src/extractor/utils.tsx:Additionally:
packages/next-intl/src/extractor/format/codecs/JSONCodec.tsx, maketraverseMessagesskip reserved keys (or switch toObject.create(null)+Object.hasOwnsemantics) so that a malicious catalog is rejected early with a clear error rather than producing__proto__.*message ids.packages/next-intl/src/plugin/catalog/catalogLoader.tsx, initializeprecompileMessages’sresultwithObject.create(null)as defense in depth, so even if a key slipped through it could not redirect throughObject.prototype.Severity
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
next-intl has an open redirect vulnerability
CVE-2026-40299 / GHSA-8f24-v5vv-gm5j
More information
Details
Impact
Applications using the
next-intlmiddleware withlocalePrefix: 'as-needed'could construct URLs where path handling and the WHATWG URL parser resolved a relative redirect target to another host (e.g. scheme-relative//or control characters stripped by the URL parser), so the middleware could redirect the browser off-site while the user still started from a trusted app URL.Patches
The problem has been patched, please update to
next-intl@4.9.1.Credits
Many thanks to Joni Liljeblad from Oura for responsibly disclosing the vulnerability and for suggesting the fix.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
next-intl has prototype pollution with
experimental.messages.precompilevia attacker-controlled translation catalog keysGHSA-4c35-wcg5-mm9h
More information
Details
Summary
setNestedPropertyinpackages/next-intl/src/extractor/utils.tsxwalks a dotted key path and assigns the final value without blocking the reserved keys__proto__,constructor, orprototype. When the next-intl Next.js plugin is configured withexperimental.messagesandmessages.precompile: true, a JSON translation catalog containing a top‑level__proto__key causessetNestedProperty(result, '__proto__.isAdmin', compiledMessage)to assign ontoObject.prototype, polluting every object in the running build process.Details
Root cause —
packages/next-intl/src/extractor/utils.tsx:13-34:The existence check
!(key in current)uses theinoperator, which walks the prototype chain. Forkey === '__proto__','__proto__' in {}istrue(it's inherited fromObject.prototype) andtypeof current['__proto__'] === 'object'(it isObject.prototype). The guard therefore never re-initializescurrent[key], andcurrent = current['__proto__']redirects all subsequent writes ontoObject.prototype. The final assignmentcurrent[keys[keys.length-1]] = valuesetsObject.prototype[<attacker key>] = <attacker value>.Build-time data flow:
packages/next-intl/src/plugin/catalog/catalogLoader.tsx:55-83— the webpack/turbopack loader receives the catalog filesourceand, ifoptions.messages.precompileis enabled, callscodec.decode(source, {locale}).packages/next-intl/src/extractor/format/codecs/JSONCodec.tsx:9-18—decoderunsJSON.parse(source). V8 installs__proto__as an own data property on the result when the JSON key is literally"__proto__"(bypassing the normalObject.prototype.__proto__setter that would otherwise reassign the prototype).JSONCodec.tsx:33-53—traverseMessagesiteratesObject.keys(obj), which for a JSON‑parsed object includes the own__proto__key. It readsobj.__proto__(returns the attacker’s nested object, notObject.prototype, because it's an own property), recurses into it, and emits message id__proto__.isAdmin.catalogLoader.tsx:71—precompileMessages(decoded, cache).catalogLoader.tsx:89-131— for each message, callssetNestedProperty(result, message.id, compiledMessage). Withmessage.id === '__proto__.isAdmin',setNestedPropertywalks intoObject.prototypeand assignsObject.prototype.isAdmin = compiledMessage.The same sink is also reachable via
JSONCodec.encode(JSONCodec.tsx:20-26) andPOCodec(packages/next-intl/src/extractor/format/codecs/POCodec.tsx:87) during extraction, both of which feed attacker-influencedmessage.idvalues intosetNestedProperty— but those paths require control of source-code identifiers, which is a weaker attack vector than the build-time catalog path above.After pollution, every subsequent object access during the remainder of the Next.js build pipeline (webpack, turbopack, babel, next-intl’s own logic) inherits the attacker-controlled properties. This is a classic gadget-chain precondition for corrupting build-tool internals and tampering with generated bundles, since many build tools use patterns like
if (obj.someFlag)oroptions[key] ?? defaultthat are sensitive to polluted prototypes.Trust boundary note: next-intl’s message catalogs are realistically attacker-influenced in practice. Translation files are routinely round-tripped through external TMS systems (Crowdin, Lokalise, Transifex), accepted via community locale PRs, or pulled from third-party translation packages — any of which can carry a crafted
__proto__key unnoticed, since JSON translation diffs are usually merged with minimal scrutiny.PoC
Prerequisites: a Next.js project using next-intl ≤ 4.9.1 with the Next.js plugin configured:
Drop a malicious catalog at
messages/en.json:{ "Greeting": "Hello", "__proto__": { "isAdmin": "polluted" } }Run
next build(ornext dev). ThecatalogLoaderwill invokeJSONCodec.decode→traverseMessages→precompileMessages→setNestedProperty.Minimal reproduction of the sink itself (verified locally against the v4.9.1 source):
Output:
PWNED.Full chain reproduction (also verified):
After the loader runs,
({}).isAdmin === 'polluted'for the remainder of the build Node process.Impact
Object.prototypeis polluted for the lifetime of the build‑time Node.js process, affecting every object created or inspected thereafter in the Next.js build pipeline (webpack/turbopack loaders, babel plugins, next-intl’s own codecs, user plugins).obj.someFlag,options[key] ?? default,if (!config.noX), etc. can be coerced into unintended behavior, including emitting tampered bundles.experimental.messages+precompileconfiguration. Users who do not use the extractor/precompile features are not affected.Recommended Fix
Reject reserved keys in
setNestedPropertyand stop using theinoperator for the existence check. A minimal patch topackages/next-intl/src/extractor/utils.tsx:Additionally:
packages/next-intl/src/extractor/format/codecs/JSONCodec.tsx, maketraverseMessagesskip reserved keys (or switch toObject.create(null)+Object.hasOwnsemantics) so that a malicious catalog is rejected early with a clear error rather than producing__proto__.*message ids.packages/next-intl/src/plugin/catalog/catalogLoader.tsx, initializeprecompileMessages’sresultwithObject.create(null)as defense in depth, so even if a key slipped through it could not redirect throughObject.prototype.Severity
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:LReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
amannn/next-intl (next-intl)
v4.9.2Compare Source
Bug Fixes
precompile: true(#2307) (c0bf0ee) – by @amannnv4.9.1Compare Source
Bug Fixes
v4.9.0Compare Source
Features
transitionTypesonLink(#2302) (02811f5) – by @amannnv4.8.4Compare Source
Bug Fixes
v4.8.3Compare Source
Bug Fixes
@formatjs/intl-localematcher(#2265) (196f1f3) – by @amannnv4.8.2Compare Source
Bug Fixes
next.config.ts(#2245) (f57800e) – by @amannnv4.8.1Compare Source
Bug Fixes
precompilealias on Windows (#2237) (8e7151a) – by @amannnv4.8.0Compare Source
Features
v4.7.0Compare Source
Features
useExtracted(#2200) (ebc5e43) – by @amannnv4.6.1Compare Source
Bug Fixes
useExtracted(#2176) (3937e44) – by @amannnv4.6.0Compare Source
Features
useExtracted, consistency fixes for file references, pruning of messages and sorting of keys (#2155) (c02818e) – by @amannnv4.5.8Compare Source
Bug Fixes
useExtracted(#2152) (9b7c9fe) – by @amannnv4.5.7Compare Source
Bug Fixes
accept-languageparsing when locale cookie is already present (#2143) (0d1331b), closes #2116 – by @lxupv4.5.6Compare Source
Bug Fixes
useExtracted(#2133) (5397c49) – by @amannnv4.5.5Compare Source
Bug Fixes
node_modules(#2120) (0ba9105) – by @amannnv4.5.4Compare Source
Bug Fixes
useExtractedto SWC plugin & handle source maps (#2114) (e63fbc5) – by @amannnv4.5.3Compare Source
Bug Fixes
useExtractedpt. 2 (#2103) (5cbd5da) – by @amannnv4.5.2Compare Source
Bug Fixes
useExtracted(#2099) (b1ff1fa) – by @amannnv4.5.1Compare Source
Bug Fixes
v4.5.0Compare Source
Features
useExtracted(experimental) (#2080) (7a85644) – by @amannnv4.4.0Compare Source
Features
v4.3.12Compare Source
Bug Fixes
getTimeZone(#2053) (bdc2af4), closes #2052 – by @amannnv4.3.11Compare Source
Bug Fixes
NextResponse.rewriteif really necessary (#2051) (43ed4aa) – by @amannnv4.3.10Compare Source
Bug Fixes
@types/reactversion (#2050) (c1e997e), closes #2044 #2044 – by @amannnv4.3.9Compare Source
Bug Fixes
useRouterto another locale (#2021) (c82d0af), closes #2020 – by @amannnv4.3.8Compare Source
Bug Fixes
v4.3.7Compare Source
Bug Fixes
usePathnameinconsistency in Next.js leading to a hydration error with custom prefixes,localePrefix: 'always'and static rendering (#2012) (bc9cb62), closes #2011 vercel/next.js#73085 #1571 – by @hugotigerv4.3.6Compare Source
Bug Fixes
next devfor upcomingnext@15.5.1(#2008) (2bf09ec) – by @amannnv4.3.5Compare Source
Bug Fixes
next {start,info,telemetry}(#1992) (fd0722a) – by @amannnv4.3.4Compare Source
Bug Fixes
'{name'}) (#1950) (4d418f4), closes #1948 – by @amannnv4.3.3Compare Source
Bug Fixes
v4.3.2Compare Source
Bug Fixes
useRouter(#1947) (3ee9c4d) – by @amannnv4.3.1Compare Source
Bug Fixes
getTimeZone(#2053) (bdc2af4), closes #2052 – by @amannnv4.3.0Compare Source
Features
numberinterpolation withuseTranslations(#1929) (a893330), closes #1928 – by @sgleisnerv4.2.0Compare Source
Features
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.