GHSA-3w8q-xq97-5j7x

Suggest an improvement
Source
https://github.com/advisories/GHSA-3w8q-xq97-5j7x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-3w8q-xq97-5j7x/GHSA-3w8q-xq97-5j7x.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3w8q-xq97-5j7x
Aliases
Published
2025-12-03T16:57:50Z
Modified
2025-12-05T12:28:14.329367Z
Severity
  • 2.7 (Low) CVSS_V4 - 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:U CVSS Calculator
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)

Database specific
{
    "severity": "LOW",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-400"
    ],
    "github_reviewed_at": "2025-12-03T16:57:50Z",
    "nvd_published_at": "2025-12-03T20:16:26Z"
}
References

Affected packages

Maven / org.mozilla:rhino

Package

Name
org.mozilla:rhino
View open source insights on deps.dev
Purl
pkg:maven/org.mozilla/rhino

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.7.14.1

Affected versions

1.*

1.7R3
1.7R4
1.7R5
1.7.6
1.7.7
1.7.7.1
1.7.7.2
1.7.8-RC1
1.7.8
1.7.9
1.7.10
1.7.11-RC1
1.7.11-RC2
1.7.11
1.7.12
1.7.13
1.7.14-RC1
1.7.14

Maven / org.mozilla:rhino

Package

Name
org.mozilla:rhino
View open source insights on deps.dev
Purl
pkg:maven/org.mozilla/rhino

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.7.15
Fixed
1.7.15.1

Affected versions

1.*

1.7.15

Maven / org.mozilla:rhino

Package

Name
org.mozilla:rhino
View open source insights on deps.dev
Purl
pkg:maven/org.mozilla/rhino

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.8.0
Fixed
1.8.1

Affected versions

1.*

1.8.0