LOW 5.5

CVE-2025-66453

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

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)

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.mozilla » rhino
< 1.7.14.1>= 1.7.15, < 1.7.15.1>= 1.8.0, < 1.8.1
1.7.14.1, 1.7.15.1, 1.8.1

Blast radius

1affected artifacts
24affected versions
14,997dependent artifacts (est.)
1,002,218dependent versions

67% of the dependent artifacts (10,053) still pull an affected version in their latest release.

DepthDependent versions
Direct
54,240
2 hops
247,768
3 hops
199,326
4 hops
184,053
5 hops
213,669
6 hops
103,162

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.