All reports
Low

Rhino has high CPU usage and potential DoS when passing specific numbers to `toFixed()` function

Affected versions

Affected versions
>= 1.7.15, < 1.7.15.1
Fixed version
1.7.15.1
Affected versions
< 1.7.14.1
Fixed version
1.7.14.1
Affected versions
= 1.8.0
Fixed version
1.8.1

Exploitation

CVE-2025-66453

Probability of exploitation in the next 30 days: 0.29%

FIRST EPSS · 2026-11-20

Description

When an application passed an attacker controlled float poing number into the toFixed() function, it might lead to high CPU consumption and a potential Denial of Service.

Small numbers go through this call stack: NativeNumber.numTo > DToA.JS_dtostr > DToA.JS_dtoa > DToA.pow5mult where pow5mult attempts to raise 5 to a ridiculous power.

Example code: (4.47118444E-314).toFixed(2)

Links

Credits

  • TechPizzaDev