Skip to content

[C++] Limit JSON max nesting depth #51757

Closed

Description

@pitrou

Describe the bug, including details regarding any error messages, version, and platform.

Arbitrarily nested JSON can run our JSON parser into a stack overflow.

We should hard-code the max JSON nesting depth to a reasonable value that's enough for any actual use case, and doesn't risk crashing.

Component(s)

C++

Activity

  1. self-assigned this
    on Oct 5, 2026
  2. added 3 commits that reference this issue on Oct 6, 2026
  3. added this to the 27.0.0 milestone on Oct 7, 2026
  4. pitrou commented on Oct 7, 2026

    @pitrou
    MemberAuthor

    Issue resolved by pull request 51758
    #51758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions