CVE-2026-68914: Mojolicious pure-Perl Mojo::JSON decoder allows memory exhaustion via deeply nested data

Published Sep 18, 2026
·
Updated

Mojolicious is a real-time web framework for Perl. Prior to 9.47, the pure-Perl implementation of Mojo::JSON does not limit nesting depth when Cpanel::JSON::XS is unavailable or MOJONOJSONXS is enabled. An attacker who can supply untrusted JSON to decodejson, fromjson, or j can submit deeply nested arrays or objects, causing unbounded recursion, memory exhaustion, and a process crash. Applications using the Cpanel::JSON::XS backend are not affected because that backend already enforces a nesting limit. This issue is fixed in version 9.47.

Affected Software

2 affected components
Mojolicious Mojolicious<9.47
perl/Mojo::JSON<9.47

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Mojolicious (Mojo::JSON pure-Perl) to a version that resolves this vulnerability.

    Fixed in 9.47

Event History

Sep 18, 2026
CVE Published
via MITRE·04:07 PM
Data Sourced
via MITRE·04:07 PM
DescriptionWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using the pure-Perl Mojo::JSON decoder are exposed when Cpanel::JSON::XS is unavailable or MOJO_NO_JSON_XS is enabled. Applications using the Cpanel::JSON::XS backend are not affected because it already enforces a nesting limit.

2

What access does an attacker need?

An attacker must be able to provide untrusted JSON that reaches decode_json, from_json, or j. They can use deeply nested arrays or objects to trigger unbounded recursion, memory exhaustion, and a process crash.

3

What should be done to remediate the issue?

Upgrade Mojolicious to version 9.47, which fixes the issue. If upgrading is not immediately possible, avoid decoding untrusted JSON through the affected pure-Perl implementation and use the Cpanel::JSON::XS backend where available.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203