Skip to content

fix: cap payment challenge request parsing#9

Merged
raubrey-stripe merged 1 commit into
stripe:mainfrom
brendanjryan:brendanjryan/payment-request-size-cap
Jun 17, 2026
Merged

fix: cap payment challenge request parsing#9
raubrey-stripe merged 1 commit into
stripe:mainfrom
brendanjryan:brendanjryan/payment-request-size-cap

Conversation

@brendanjryan

Copy link
Copy Markdown
Contributor

Summary

  • Reject WWW-Authenticate request parameters above the 16 KiB parser cap before later decoding.
  • Added a parser regression test for oversized challenge request parameters.

Motivation

Aligns the Java SDK with the request-size hardening in tempoxyz/mpp-tools#35 so oversized challenge parameters fail early.

Key design considerations

  • Reuses the existing Parsing.MAX_PAYLOAD_SIZE limit.
  • Leaves normal parsing behavior unchanged for missing or in-limit request parameters.

@raubrey-stripe raubrey-stripe marked this pull request as ready for review June 17, 2026 17:24
@raubrey-stripe raubrey-stripe merged commit cc72115 into stripe:main Jun 17, 2026
7 checks passed
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