Intel

AIKIDO-2026-227399

i18next is vulnerable to Regular Expression Denial of Service (ReDoS)

GHSA-5jr9-983r-c8x4Published Oct 20, 2026
October 20, 2026

75

CVE Score

High

Regular Expression Denial of Service (ReDoS)

Are you affected? Scan for Free

TL;DR

i18next's nesting regular expression backtracks exponentially when interpolated text contains the nesting prefix $t( without a matching closing ). With the default skipOnVariables and escapeValue settings, any value passed to t() as a variable reaches this regexp before the nest option is checked. A short untrusted value blocks the event loop for seconds to hours, leading to a remote denial of service through an ordinary translation call on a Node.js or server rendering process. The fix rewrites the regexp so every alternative starts with a distinct character, removing the overlapping backtracking paths.

How do I fix this?

Upgrade the i18next library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

25.3.3 - 26.4.3

Fixed in 26.4.4

Background info

i18next is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 25.3.3 - 26.4.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea