Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-88362 Overview
CVE-2026-88362 is an incorrect numeric conversion vulnerability [CWE-681] in MuJS commit e892c9fdb. The flaw resides in the jsR_isindex() function within jsrun.c. A specially crafted JavaScript input containing an excessively large numeric array index triggers an out-of-range floating-point to integer conversion without proper range validation. The resulting undefined behavior causes process termination and a denial-of-service condition. Because MuJS is embedded in applications such as Ghostscript, exploitation can disrupt downstream services that process untrusted JavaScript content over the network.
Critical Impact
Remote attackers can crash any application embedding the vulnerable MuJS build by submitting JavaScript with an oversized numeric array index, causing a reliable denial of service.
Affected Products
- MuJS JavaScript interpreter at commit e892c9fdb
- Ghostscript distributions bundling the vulnerable MuJS build
- Third-party applications embedding the affected MuJS version for scripting
Discovery Timeline
- 2026-09-24 - CVE-2026-88362 published to the National Vulnerability Database
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-88362
Vulnerability Analysis
The defect lies in jsR_isindex() inside jsrun.c, which validates whether a JavaScript property name represents a valid array index. The function accepts a double-precision floating-point value and converts it to an integer type without first confirming that the value falls within the representable integer range.
When a script supplies an array index far beyond the maximum integer value, the conversion produces undefined behavior under the C standard. On most platforms this manifests as process termination through a floating-point exception or abort signal, denying service to any application embedding MuJS. Ghostscript is a notable consumer and is referenced in the upstream Ghostscript Bug Report #709636.
Root Cause
The root cause is a missing range check prior to a floating-point to integer cast, classified as [CWE-681] Incorrect Conversion between Numeric Types. The code assumes array index values will remain within integer bounds, but a malicious script can submit values exceeding INT_MAX or producing non-finite results from arithmetic such as division by zero.
Attack Vector
An attacker supplies JavaScript source that references an array element using an excessively large numeric index, for example a[1e300] or expressions that evaluate to values outside the signed integer range. When the embedding application parses and executes this script, jsR_isindex() performs the unchecked conversion and the host process terminates. The attack requires no authentication and no user interaction when the target application processes untrusted JavaScript from network input.
No verified public exploit code is available at the time of publication. Refer to the upstream fix in the Ghostscript MuJS Commit 8a32c39 for the authoritative technical description.
Detection Methods for CVE-2026-88362
Indicators of Compromise
- Unexpected crashes or SIGFPE/SIGABRT termination of processes embedding MuJS, including Ghostscript workers
- Core dumps whose stack traces reference jsR_isindex or neighboring functions in jsrun.c
- Spikes in restart activity for document conversion, PDF rendering, or scripting services that consume untrusted input
Detection Strategies
- Inventory build artifacts and container images for MuJS at or near commit e892c9fdb and flag matches for remediation
- Monitor application and systemd journals for repeated abnormal exits of Ghostscript or other MuJS consumers
- Inspect submitted JavaScript or PostScript content for numeric literals exceeding safe integer bounds prior to execution
Monitoring Recommendations
- Forward crash telemetry and process-exit events into a central analytics pipeline for correlation across hosts
- Alert when the same source address or user triggers repeated interpreter crashes within a short window
- Track upstream advisories from Ghostscript and MuJS maintainers for additional variants or regression fixes
How to Mitigate CVE-2026-88362
Immediate Actions Required
- Rebuild or upgrade MuJS to a revision that includes the upstream fix from commit 8a32c397b28fe45747ac4e9e4f3dca049825eda7
- Update Ghostscript and any other embedding applications to a version that ships the patched MuJS
- Restrict network exposure of services that execute untrusted JavaScript until patching is complete
Patch Information
The upstream MuJS project addressed the issue in commit 8a32c397b28fe45747ac4e9e4f3dca049825eda7, which adds proper range validation before converting floating-point index values to integers. Downstream distributions should backport this commit or consume a release that contains it. See the Ghostscript MuJS Commit 8a32c39 for the authoritative patch.
Workarounds
- Disable JavaScript execution in Ghostscript and other embedding tools when the feature is not required
- Apply input validation at the application layer to reject JavaScript containing numeric literals outside the safe integer range
- Sandbox interpreter processes with resource limits and automatic restart to contain crash impact
# Example: disable PostScript/JavaScript features and enforce safer defaults in Ghostscript invocations
gs -dSAFER -dNOJS -dNOEXECSTACK -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=out.pdf input.pdf
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

