CVE-2026-14803 Details
Description
Mojo::JSON versions before 9.47 for Perl allow memory exhaustion via unbounded recursion in the pure-Perl decoder. The pure-Perl decode path (`_decode_value` dispatching to `_decode_array` and `_decode_object`) recurses with no depth limit, so a small deeply nested JSON document can consume excessive memory. This path is the default when Cpanel::JSON::XS is not installed or `MOJO_NO_JSON_XS=1` is set; the Cpanel::JSON::XS fast path is not affected. Any caller that decodes an untrusted JSON body, for example `Mojo::Message::json` reached through `$c->req->json`, can exhaust process memory and cause denial of service.
A denial-of-service vulnerability has been identified in Mojo::JSON versions prior to 9.47 for Perl. The issue arises in the pure-Perl decoder, where unbounded recursion can lead to memory exhaustion. This vulnerability is present when the pure-Perl decode path is used, which is the default if Cpanel::JSON::XS is not installed or if the MOJO_NO_JSON_XS environment variable is set to 1. In such cases, decoding deeply nested JSON documents can consume excessive memory, causing the process to run out of resources. The vulnerability can be exploited by decoding untrusted JSON data, such as through the Mojo::Message::json method in a Mojolicious controller.
Users are advised to upgrade to Mojo::JSON version 9.47 or later, where this vulnerability has been fixed by introducing a nesting limit of 512 levels, matching the default behavior of Cpanel::JSON::XS.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 6, 2026CISA-ADP
Assessed Jul 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mojolicious/mojo/commit/cc38b0554275c4d84f6b8b49bcbbc1bec2068fe1.patch | CPANSec | Source CodeVendor |
| https://metacpan.org/release/SRI/Mojolicious-9.47/changes | CPANSec | Release NotesVendor |
| http://www.openwall.com/lists/oss-security/2026/07/06/2 | CVE |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Mojo::JSON | < 9.47 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 6, 2026 | CVE Modified | CISA-ADP |
| Jul 6, 2026 | CVE Modified | CVE |
| Jul 6, 2026 | New CVE Received | CPANSec |
Volerion