Skip to content

Static deserializer builder needed the default maximum recursion#1111

Merged
EdwardCooke merged 1 commit into
aaubry:masterfrom
EdwardCooke:ec-security
Jun 22, 2026
Merged

Static deserializer builder needed the default maximum recursion#1111
EdwardCooke merged 1 commit into
aaubry:masterfrom
EdwardCooke:ec-security

Conversation

@EdwardCooke

Copy link
Copy Markdown
Collaborator

Welcome!

Needed to add the maximum recursion to the static deserializer builder to complete the security finding.

Copilot AI review requested due to automatic review settings June 22, 2026 02:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates StaticDeserializerBuilder so it matches the security-hardened default behavior of the reflection-based DeserializerBuilder by enabling a default maximum recursion limit during deserialization.

Changes:

  • Set a default maximumRecursion of 130 in StaticDeserializerBuilder’s constructor.
  • Update WithMaximumRecursion XML documentation to describe the default and provide guidance about safe limits.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread YamlDotNet/Serialization/StaticDeserializerBuilder.cs
Comment thread YamlDotNet/Serialization/StaticDeserializerBuilder.cs
@EdwardCooke EdwardCooke merged commit 748334a into aaubry:master Jun 22, 2026
3 checks passed
This was referenced Jun 26, 2026
This was referenced Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants