Jackson Core Max Nesting Depth Constraint Bypass Vulnerability in JSON Parsers Allowing Denial-of-Service

Vulnerability

A denial-of-service vulnerability has been identified in Jackson Core versions 3.0.0 prior to 3.1.0. The issue arises in the UTF8DataInputJsonParser and ReaderBasedJsonParser, where the parsers bypass the maximum nesting depth constraint defined in StreamReadConstraints. This flaw allows a user to supply a JSON document with excessive nesting, which can lead to a StackOverflowError when processed, causing a denial-of-service condition.

Impact

Exploitation of this vulnerability can lead to a StackOverflowError, causing a denial-of-service condition by exhausting resources and potentially crashing the application.

Reproduction

The vulnerability can be reproduced by using a JSON document that has a nesting depth greater than 500. This can be done by creating a JSON file with deeply nested arrays or objects and then parsing it with the UTF8DataInputJsonParser or ReaderBasedJsonParser.

Remediation

Users are advised to upgrade to Jackson Core version 3.1.0, where this vulnerability has been patched. Instructions for upgrading can be found in the Jackson Core repository on GitHub.

Added: Mar 6, 2026, 8:23 AM
Updated: Mar 6, 2026, 8:23 AM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
2.5
exploitability
5.7
remediation
7.9
relevance
3.5
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.