Intel

AIKIDO-2026-42802

encore.dev is vulnerable to Uncontrolled Resource Consumption

Uncontrolled Resource ConsumptionGHSA-72fg-v7vh-4q32 Published 2 days ago

53

Medium Risk

This Affects:

JSencore.dev
0.0.1 - 1.57.10
Fixed in 1.57.11
Are you affected? Scan for Free

TL;DR

When parsing a decimal value from a request string, the Encore runtime passes the input directly to the underlying rational-number parser without bounding its length or magnitude. A value with an extremely large exponent in scientific notation or an implausibly long decimal string causes the runtime to try to materialize an enormous number, consuming excessive memory and CPU and potentially crashing the service. Only applications that accept a decimal-typed value in a request are affected. The fix validates decimal strings before parsing and rejects inputs that are too long or whose base-10 exponent is far outside any legitimate value.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application accepts a decimal-typed value in a request.

Background info

encore.dev is vulnerable to Uncontrolled Resource Consumption in versions 0.0.1 - 1.57.10.

How to fix this

Upgrade the encore.dev library to the patch version.