Intel

AIKIDO-2024-10543

i18next is vulnerable to Code Injection

Code Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 17, 2024

84

High Risk

This Affects:

JSi18next
17.0.2 - 24.1.1
Fixed in 24.1.2
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to code injection due to unsafe behavior in the i18n.t function. When requested keys do not exist, the function can return JavaScript objects such as constructor, potentially allowing attackers to execute arbitrary code in certain scenarios.

Who does this affect?

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

Background info

i18next is vulnerable to Code Injection in versions 17.0.2 - 24.1.1.

How to fix this

Upgrade the i18next library to the patch version.