René's URL Explorer Experiment


Title: Advertised page/perPage bounds are not enforced in list_commits, get_commit, actions_list and list_gists, and -2^63 returns a raw Go decode error · Issue #3762 · github/github-mcp-server · GitHub

Open Graph Title: Advertised page/perPage bounds are not enforced in list_commits, get_commit, actions_list and list_gists, and -2^63 returns a raw Go decode error · Issue #3762 · github/github-mcp-server

X Title: Advertised page/perPage bounds are not enforced in list_commits, get_commit, actions_list and list_gists, and -2^63 returns a raw Go decode error · Issue #3762 · github/github-mcp-server

Description: Describe the bug These tools advertise page with minimum: 1 (and perPage 1..100) in tools/list. At runtime they validate against a relaxed clone of the schema with the bounds removed, and they forward the value unchanged: page: -1 is sen...

Open Graph Description: Describe the bug These tools advertise page with minimum: 1 (and perPage 1..100) in tools/list. At runtime they validate against a relaxed clone of the schema with the bounds removed, and they forw...

X Description: Describe the bug These tools advertise page with minimum: 1 (and perPage 1..100) in tools/list. At runtime they validate against a relaxed clone of the schema with the bounds removed, and they forw...

Opengraph URL: https://github.com/github/github-mcp-server/issues/3762

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Advertised page/perPage bounds are not enforced in list_commits, get_commit, actions_list and list_gists, and -2^63 returns a raw Go decode error","articleBody":"### Describe the bug\n\nThese tools advertise `page` with `minimum: 1` (and `perPage` 1..100) in `tools/list`. At runtime they validate against a relaxed clone of the schema with the bounds removed, and they forward the value unchanged:\n\n- `page: -1` is sent as `?page=-1`.\n- `page: 9007199254740992` (2^53) is sent as is. For `list_commits`, GitHub answers HTTP 500 and the tool returns `failed to list commits: : GET …/commits?page=9007199254740992&per_page=1: 500  []`, with an empty message.\n- `page: 2147483647` is accepted by GitHub and returns `[]`.\n\nThe relaxation is intentional, per the comment at `pkg/github/git_gist_types.go:236-242` (\"the SDK continues accepting legacy out-of-range values (e.g. page=-1, perPage=101) that the handler has always forwarded unmodified\"). The result is that the advertised contract and the behaviour disagree, and very large values produce an opaque upstream 500.\n\nSeparately, `-9223372036854775808` (-2^63) passes the integer range check, which is inclusive at the lower end (`pkg/github/params.go:63-66`; `typed_read_normalizers.go:45` uses the same `inSignedIntRange`), and then, by code reading, fails in the typed decode with a raw `encoding/json` error that exposes internal type names and a fragment of the arguments:\n`json: cannot unmarshal number -9223372036854776000,\"perPage\":1... overflows into Go struct field github.ListCommitsInput.page of type int` (also `github.IssueReadInput.issue_number` via `issue_read`).\n\nRelated: #3647 / PR #3649 (list_label turns `perPage: 0` into 100 despite `minimum: 1`), the same class in a different tool. #3489 / PR #3650 fixed the upper bound (2^63) only.\n\nCode (main 99d6d650, unchanged since v2.1.0): `relaxedPaginationValidationSchema` at `pkg/github/git_gist_types.go:243-253`, used at `repositories.go:75` (get_commit), `repositories.go:248` (list_commits), `gists.go:49` (list_gists). `actionsValidationSchema` at `actions_types.go:114` (actions_list). Range check at `params.go:63-66`.\n\n`perPage` out-of-range values were not tested; the relaxation also clears the `perPage` min/max per the code.\n\n### Affected version\n\nv2.1.0 (image `sha256:f6056fc1…0f8a`, commit 4bcdcdf8) and main nightly (image `sha256:48bc16d0…338f`, revision 99d6d650). `--read-only --toolsets=all`, read-only fine-grained PAT.\n\n### Steps to reproduce the behavior\n\nThe forwarded value is visible in the request URL of the error result:\n```json\n{\"name\":\"list_commits\",\"arguments\":{\"owner\":\"OWNER\",\"repo\":\"REPO\",\"sha\":\"no-such-ref\",\"page\":-1,\"perPage\":1}}\n```\nResult: `GET …/commits?page=-1&per_page=1&sha=no-such-ref: 404`.\n```json\n{\"name\":\"list_gists\",\"arguments\":{\"username\":\"no-such-user-zz9\",\"page\":-1,\"perPage\":1}}\n```\nResult: `GET …/users/no-such-user-zz9/gists?page=-1&per_page=1: 404`.\n```json\n{\"name\":\"actions_list\",\"arguments\":{\"owner\":\"OWNER\",\"repo\":\"REPO\",\"method\":\"list_workflows\",\"page\":9007199254740992,\"perPage\":1}}\n```\nResult: `GET …/actions/workflows?page=9007199254740992&per_page=1` (403 here because the PAT has no Actions scope, but the page value is visible).\n```json\n{\"name\":\"list_commits\",\"arguments\":{\"owner\":\"OWNER\",\"repo\":\"REPO\",\"page\":9007199254740992,\"perPage\":1}}\n```\nResult: `failed to list commits: : GET …/commits?page=9007199254740992&per_page=1: 500  []`.\n```json\n{\"name\":\"list_commits\",\"arguments\":{\"owner\":\"OWNER\",\"repo\":\"REPO\",\"page\":-9223372036854775808,\"perPage\":1}}\n```\nResult: the raw decode error quoted above.\n\n`get_commit` with `page: -1` and `page: 2^53` returns success with no validation error. Its error messages don't show the URL; by code it forwards `page` to `ListOptions` the same way.\n\n### Expected vs actual behavior\n\nExpected: values outside the advertised range are clamped or rejected with a message that names the parameter. An out-of-range integer gets the same \"value out of range\" message as at the upper end.\n\nActual: the values are forwarded unmodified (opaque 500 at 2^53), and -2^63 leaks a Go decode error.\n\nSuggested fix: if accepting legacy values must stay, normalise in the handler: `page \u003c 1` → 1, and reject `page` above a sane cap (for example, 2^31-1) with a clear error. Alternatively, stop advertising bounds that aren't enforced. Make the lower bound in `inSignedIntRange` exclusive (`f > -limit`), matching the upper bound, so -2^63 gets the existing range error.\n\n### Logs\n\n```\nlist_commits page=-1 (bad ref)        -> …/commits?page=-1&per_page=1&sha=no-such-ref: 404 Not Found []\nlist_gists   page=-1 (bad user)       -> …/users/no-such-user-zz9/gists?page=-1&per_page=1: 404 Not Found []\nactions_list page=2^53                -> …/actions/workflows?page=9007199254740992&per_page=1: 403 …\nlist_commits page=2^53                -> failed to list commits: : GET …/commits?page=9007199254740992&per_page=1: 500  []\nlist_commits page=2147483647          -> OK []\nlist_commits page=-2^63               -> json: cannot unmarshal number -9223372036854776000,\"perPage\":1... overflows into Go struct field github.ListCommitsInput.page of type int\ntools/list list_commits page: {\"type\":\"number\",\"minimum\":1}\n```\nSame on v2.1.0 and main.\n\nFound during an independent audit of v2.1.0 on a throwaway org and private test repo. Prepared with AI assistance (Claude Code); reproduced by two independent test runs before filing.\n","author":{"url":"https://github.com/rafe-walker","@type":"Person","name":"rafe-walker"},"datePublished":"2026-11-09T06:12:08Z","url":"https://github.com/github/github-mcp-server/issues/3762"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b3fb686c-392f-37fd-a916-2bf2a3bc645b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDBE4:107A1:70AD35:92C2D4:6B06283B
html-safe-noncebbb873d6d7731ea473c92ba408f57e80b647940a1860dc3d6a8d2c8ce3dce8f9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkU0OjEwN0ExOjcwQUQzNTo5MkMyRDQ6NkIwNjI4M0IiLCJ2aXNpdG9yX2lkIjoiODAwNzA5OTM1NDExMDYzNDA0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5a55cf5875917ef11171d2617c6513fd159b460accc50317f321dcbe2d43d1d7
hovercard-subject-tagissue:6280976155
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3762/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5cdc06486376af69c07b44a6816977cd996b130ad074187441e67f1170096e6b/github/github-mcp-server/issues/3762
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5cdc06486376af69c07b44a6816977cd996b130ad074187441e67f1170096e6b/github/github-mcp-server/issues/3762
og:image:altDescribe the bug These tools advertise page with minimum: 1 (and perPage 1..100) in tools/list. At runtime they validate against a relaxed clone of the schema with the bounds removed, and they forw...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerafe-walker
hostnamegithub.com
expected-hostnamegithub.com
None9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce
turbo-cache-controlno-preview
go-importgithub.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id942771284
octolytics-dimension-repository_nwogithub/github-mcp-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id942771284
octolytics-dimension-repository_network_root_nwogithub/github-mcp-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release32e57d5cc2ce6ce92ec6dceb65858344750c27c2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/github-mcp-server/issues/3762#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F3762
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F3762
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/issues/3762
Reloadhttps://github.com/github/github-mcp-server/issues/3762
Reloadhttps://github.com/github/github-mcp-server/issues/3762
githubhttps://github.com/github
github-mcp-serverhttps://github.com/github/github-mcp-server
Codehttps://github.com/github/github-mcp-server
Issues238 (238)https://github.com/github/github-mcp-server/issues
Pull requests226 (226)https://github.com/github/github-mcp-server/pulls
Discussionshttps://github.com/github/github-mcp-server/discussions
Actionshttps://github.com/github/github-mcp-server/actions
Security and quality2 (2)https://github.com/github/github-mcp-server/security
Insightshttps://github.com/github/github-mcp-server/insights
https://github.com/github/github-mcp-server
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3762
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3762
#3785https://github.com/github/github-mcp-server/pull/3785
Advertised page/perPage bounds are not enforced in list_commits, get_commit, actions_list and list_gists, and -2^63 returns a raw Go decode errorhttps://github.com/github/github-mcp-server/issues/3762#top
#3785https://github.com/github/github-mcp-server/pull/3785
https://github.com/rafe-walker
rafe-walkerhttps://github.com/rafe-walker
on Nov 9, 2026https://github.com/github/github-mcp-server/issues/3762#issue-6280976155
#3647https://github.com/github/github-mcp-server/issues/3647
#3649https://github.com/github/github-mcp-server/pull/3649
#3489https://github.com/github/github-mcp-server/issues/3489
#3650https://github.com/github/github-mcp-server/pull/3650
99d6d65https://github.com/github/github-mcp-server/commit/99d6d6503a7b2a133e2f8a595d6d0ba24b4086d3
4bcdcdfhttps://github.com/github/github-mcp-server/commit/4bcdcdf8d7beee98c9448e73e257308280924cc4
99d6d65https://github.com/github/github-mcp-server/commit/99d6d6503a7b2a133e2f8a595d6d0ba24b4086d3
https://github.com/rafe-walker
rafe-walkerhttps://github.com/rafe-walker
on Nov 12, 2026https://github.com/github/github-mcp-server/issues/3762#issuecomment-6829120515
#3785https://github.com/github/github-mcp-server/pull/3785
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/github-mcp-server/issues/3762
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3762
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.