Skip to content

fix: validate max_runs_per_component on pipeline deserialization - #12453

Open
simpleqt wants to merge 1 commit into
deepset-ai:mainfrom
simpleqt:sec-max-runs-clamp
Open

fix: validate max_runs_per_component on pipeline deserialization#12453
simpleqt wants to merge 1 commit into
deepset-ai:mainfrom
simpleqt:sec-max-runs-clamp

Conversation

@simpleqt

Copy link
Copy Markdown
Contributor

Untrusted serialized pipelines could set an arbitrarily large
max_runs_per_component (for example 999999999) to effectively disable the
pipeline loop protection. Validate the value both in the PipelineBase
constructor (ValueError) and during from_dict (DeserializationError,
consistent with other deserialization failures): it must be a positive
integer no greater than a hard limit of 1000000.

Untrusted serialized pipelines could set an arbitrarily large
max_runs_per_component (for example 999999999) to effectively disable the
pipeline loop protection. Validate the value both in the PipelineBase
constructor (ValueError) and during from_dict (DeserializationError,
consistent with other deserialization failures): it must be a positive
integer no greater than a hard limit of 1000000.
Copilot AI lite review requested due to automatic review settings August 24, 2026 11:16
@simpleqt
simpleqt requested a review from a team as a code owner August 24, 2026 11:16
@simpleqt
simpleqt requested review from julian-risch and removed request for a team August 24, 2026 11:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

@simpleqt is attempting to deploy a commit to the deepset Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Hi @simpleqt, thanks for your interest in contributing to Haystack! 🙏

⚠️ You currently have 3 open pull requests in this repository (#12452, #12439 and this one). Our review capacity is limited, so please hold off opening more PRs until we've had a chance to review your first 2 open PRs. This helps us give each contribution the attention it deserves. Thank you!

This is an automated message to help us keep the review queue healthy.

@github-actions

Copy link
Copy Markdown
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  haystack/core/pipeline
  base.py
Project Total  

This report was generated by python-coverage-comment-action

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants