[SECURITY] Update dependency org.mozilla:rhino to v1.8.1 #2116
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.8.0->1.8.1Rhino has high CPU usage and potential DoS when passing specific numbers to
toFixed()functionCVE-2025-66453 / GHSA-3w8q-xq97-5j7x
More information
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.pow5multwhere
pow5multattempts to raise5to a ridiculous power.Example code:
(4.47118444E-314).toFixed(2)Severity
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:UReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
mozilla/rhino (org.mozilla:rhino)
v1.8.1December 2, 2025
These releases fix a bug in the code that formats floating-point numbers into strings
that could result in very bad performance in some cases.
We recommend that all users of Rhino upgrade to release 1.8.1 if possible,
and upgrade to Java 17 or 21.
Users who need an older release, or who cannot yet leave Java 8, can also
use 1.7.15.1 or 1.7.14.1.
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. Specmatic specific configuration is managed here.