{"id":"CVE-2026-14803","state":"PUBLISHED","title":"Mojo::JSON versions before 9.47 for Perl allow memory exhaustion via unbounded recursion in the pure-Perl decoder","description":"Mojo::JSON versions before 9.47 for Perl allow memory exhaustion via unbounded recursion in the pure-Perl decoder.\n\nThe 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.\n\nThis 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.\n\nAny 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.","publishedAt":"2026-07-06T01:34:43.872Z","updatedAt":"2026-07-06T18:51:14.358Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["SRI Mojo::JSON"],"affected":[{"vendor":"SRI","product":"Mojo::JSON","packageName":"Mojolicious","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"9.47","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Mojo/JSON.pm"],"programRoutines":[{"name":"Mojo::JSON::_decode_array"},{"name":"Mojo::JSON::_decode_object"}],"repo":"https://github.com/mojolicious/mojo"}],"references":["https://github.com/mojolicious/mojo/commit/cc38b0554275c4d84f6b8b49bcbbc1bec2068fe1.patch","https://metacpan.org/release/SRI/Mojolicious-9.47/changes","http://www.openwall.com/lists/oss-security/2026/07/06/2"],"weaknesses":["CWE-674"],"ingestedAt":"2026-10-29T20:11:00.674Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/14xxx/CVE-2026-14803.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-14803","state":"PUBLISHED","datePublished":"2026-07-06T01:34:43.872Z","dateUpdated":"2026-07-06T18:51:14.358Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-07-05T21:23:29.979Z"},"containers":{"cna":{"title":"Mojo::JSON versions before 9.47 for Perl allow memory exhaustion via unbounded recursion in the pure-Perl decoder","descriptions":[{"lang":"en","value":"Mojo::JSON versions before 9.47 for Perl allow memory exhaustion via unbounded recursion in the pure-Perl decoder.\n\nThe 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.\n\nThis 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.\n\nAny 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."}],"affected":[{"vendor":"SRI","product":"Mojo::JSON","packageName":"Mojolicious","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"9.47","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Mojo/JSON.pm"],"programRoutines":[{"name":"Mojo::JSON::_decode_array"},{"name":"Mojo::JSON::_decode_object"}],"repo":"https://github.com/mojolicious/mojo"}],"references":[{"url":"https://github.com/mojolicious/mojo/commit/cc38b0554275c4d84f6b8b49bcbbc1bec2068fe1.patch","tags":["patch"]},{"url":"https://metacpan.org/release/SRI/Mojolicious-9.47/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-674","description":"CWE-674 Uncontrolled Recursion","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-07-06T01:34:43.872Z"},"solutions":[{"lang":"en","value":"Upgrade to Mojolicious 9.47 or later."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2026-07-05T00:00:00.000Z","value":"Version 9.47 released with fix."}],"workarounds":[{"lang":"en","value":"Where upgrading is not possible, install Cpanel::JSON::XS in the include path and leave `MOJO_NO_JSON_XS` unset."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/07/06/2"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-07-06T05:27:01.702Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":6.5,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-07-06T18:50:20.863135Z","id":"CVE-2026-14803","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-06T18:51:14.358Z"}}]}}}