Mojo::JSON versions before 9.47 for Perl allow memory...
Moderate severity
Unreviewed
Published
Jul 6, 2026
to the GitHub Advisory Database
•
Updated Jul 6, 2026
Description
Published by the National Vulnerability Database
Jul 6, 2026
Published to the GitHub Advisory Database
Jul 6, 2026
Last updated
Jul 6, 2026
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_valuedispatching to_decode_arrayand_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=1is set; the Cpanel::JSON::XS fast path is not affected.Any caller that decodes an untrusted JSON body, for example
Mojo::Message::jsonreached through$c->req->json, can exhaust process memory and cause denial of service.References