GHSA-3w8q-xq97-5j7x
Dashboard / Vulnerabilities / GHSA-3w8q-xq97-5j7x
Summary: Rhino has high CPU usage and potential DoS when passing specific numbers to `toFixed()` function
Details: 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)`
References: https://github.com/mozilla/rhino/security/advisories/GHSA-3w8q-xq97-5j7x, https://nvd.nist.gov/vuln/detail/CVE-2025-66453, https://github.com/mozilla/rhino/commit/2bcf4c43deace35f1f57d86377c6767b0608986e, https://github.com/mozilla/rhino
Affected packages
Package
Name: org.mozilla:rhino
Purl: pkg:maven/org.mozilla/rhino
Affected ranges
Type: ECOSYSTEM
Events:
