Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Mojolicious endpoint accepting JSON body
-
DeliveryConfirm pure-Perl decoder active (no XS)
-
ExploitCraft deeply nested JSON payload
-
InstallPOST payload to target endpoint
-
C2Trigger unbounded recursion in _decode_value
-
ExecuteExhaust worker process memory
-
ImpactDeny service to legitimate users
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | Three conditions must hold simultaneously: (1) the target application is built on Mojolicious and decodes request bodies via |
| Impact | The provided CVSS of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) correctly captures a network-exploitable, low-complexity denial-of-service with no confidentiality or integrity impact. EPSS at 0.19% (8th percentile) is notably low for a medium-CVSS network vulnerability, consistent with DoS-only impact and the conditional nature of the vulnerable path - production Mojolicious stacks commonly include Cpanel::JSON::XS per CPAN best-practice guidance, which entirely removes exposure. No CISA KEV listing and no POC code have been identified, further reducing near-term exploitation probability. The primary real-world risk concentrates on deployments that skip the XS dependency, such as minimal container images or development environments, and that expose unauthenticated or lightly authenticated JSON endpoints. The CVSS PR:L assignment implies a session requirement, but the decoder itself imposes no authentication gate - any publicly reachable endpoint that calls Mojo::Message::json is equally exposed; actual risk depends on whether the application enforces authentication before JSON parsing. |
| Exploit ScenarioDerived | An attacker sends an HTTP POST request to any Mojolicious route that calls |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 06, 2026
Memory exhaustion via uncontrolled recursion in Mojo::JSON's pure-Perl decoder allows network-accessible callers to cause denial of service in Mojolicious applications. All versions before 9.47 are affected when the pure-Perl decode path is active - specifically when Cpanel::JSON::XS is absent or MOJO_NO_JSON_XS=1 is set. No public exploit has been identified and EPSS sits at 0.19% (8th percentile), but the attack is conceptually trivial given the published patch diff and OSS-Security advisory.
RemediationAI
Upgrade Mojolicious to version 9.47 or later, which introduces a recursion depth limit in the pure-Perl JSON decoder. The fix commit is available at https://github.com/mojolicious/mojo/commit/cc38b0554275c4d84f6b8b49bcbbc1bec2068fe1.patch and the release changelog is at https://metacpan.org/release/SRI/Mojolicious-9.47/changes. For deployments that cannot upgrade immediately, the most effective compensating control is installing Cpanel::JSON::XS (available from CPAN), which causes Mojo::JSON to use the unaffected XS code path at runtime - verify the module is loadable with perl -MCpanel::JSON::XS -e 1. A secondary workaround is adding a JSON body size limit at the reverse proxy (e.g., client_max_body_size 1m in nginx or LimitRequestBody in Apache) to constrain payload size; note this reduces but does not eliminate risk, because deeply nested payloads can be small in bytes yet deeply recursive. Do not rely on unsetting MOJO_NO_JSON_XS alone unless Cpanel::JSON::XS is confirmed installed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mojo::JSON is the JSON component of the Mojolicious web framework for Perl (CPE: cpe:2.3:a:sri:mojo::json). The root cause is CWE-674 (Uncontrolled Recursion): the pure-Perl decoder uses mutual recursion across three functions - _decode_value dispatches to _decode_array or _decode_object depending on the opening token, and both array and object handlers recursively call _decode_value for each element or value. With no maximum depth guard, a crafted payload consisting entirely of nested arrays (e.g., [[[[...]]]]) or nested objects grows the call stack proportionally to nesting depth until process memory is exhausted. The XS-accelerated code path provided by the optional Cpanel::JSON::XS module does not share this Perl-level recursion and is entirely unaffected. The vulnerable path is the runtime default when Cpanel::JSON::XS cannot be loaded.
Know when Mojo gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
The decoder imposes no authentication gate; any reachable JSON endpoint is exposed, so PR:N is more accurate than PR:L.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-41798
GHSA-fp7f-j7qv-4qww
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB