NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2025-66453: Rhino has high CPU usage and potential DoS when passing specific numbers to `toFixed()` function

lowCVSS 4.0 2.7GHSA-3w8q-xq97-5j7x

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.JSdtostr DToA.JSdtoa DToA.pow5mult where pow5mult attempts to raise 5 to a ridiculous power. Example code: (4.47118444E-314).toFixed(2)

Published Dec 3, 2025 · Updated Dec 4, 2025

Affected packages

org.mozilla:rhino

Ecosystem
Maven
Affected
< 1.7.14.1
Fixed in
1.7.14.1
Check
mvn dependency:tree -Dincludes=org.mozilla:rhino

org.mozilla:rhino

Ecosystem
Maven
Affected
>= 1.7.15, < 1.7.15.1
Fixed in
1.7.15.1
Check
mvn dependency:tree -Dincludes=org.mozilla:rhino

org.mozilla:rhino

Ecosystem
Maven
Affected
= 1.8.0
Fixed in
1.8.1
Check
mvn dependency:tree -Dincludes=org.mozilla:rhino

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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)

Credited to TechPizzaDev.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology