Intel

AIKIDO-2025-10890

elysia is vulnerable to Improper Control of Generation of Code ('Code Injection')

Improper Control of Generation of Code ('Code Injection') Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

85

High Risk

This Affects:

JSelysia
0.7.0 - 1.4.16
Fixed in 1.4.17

TL;DR

Affected versions of this package are vulnerable to Arbitrary Code Execution due to improper sanitization of user input when dynamically generating code for cookie signing. The vulnerability exists because the cookie.secrets configuration is directly embedded into generated function code using string concatenation without proper escaping, allowing an attacker who can control this value to inject arbitrary JavaScript code.

Who does this affect?

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

Background info

elysia is vulnerable to Improper Control of Generation of Code ('Code Injection') in versions 0.7.0 - 1.4.16.

How to fix this

Upgrade the elysia library to the patch version.