Skip to content

Conversation

@dereuromark
Copy link
Member

@dereuromark dereuromark commented Jan 10, 2026

Summary

  • Cast the limit query parameter value to int in PaginatorHelper::limitControl() to sanitize potentially malicious input
  • Preserves null handling so the default value is used when no limit is specified

Closes #19172

Note: There is no XSS issue, this is purely to have easier handling of such input downstream, incl logging etc.

Sanitize the limit query parameter value by casting to int,
preventing potential XSS injection via malicious query strings.

Refs #19172
@dereuromark dereuromark added this to the 5.3.0 milestone Jan 10, 2026
@othercorey othercorey modified the milestones: 5.3.0, 5.3.1, 5.4.0 Jan 11, 2026
@markstory markstory modified the milestones: 5.4.0, 5.3.1 Jan 12, 2026
@markstory markstory merged commit b6765ff into 5.x Jan 12, 2026
15 checks passed
@markstory markstory deleted the fix/paginator-limitcontrol-xss branch January 12, 2026 00:34
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.

Possible XSS in Paginator Helper (limitControl() method)

4 participants