René's URL Explorer Experiment


Title: lab-ops-hub: container validator returns WHATWG-encodable ASCII punctuation verbatim outside the host — path/query/fragment/userinfo " < > ^ ` { } go on the request line raw while the Worker fetches the encoded form · Issue #618 · developing-today/code · GitHub

Open Graph Title: lab-ops-hub: container validator returns WHATWG-encodable ASCII punctuation verbatim outside the host — path/query/fragment/userinfo " < > ^ ` { } go on the request line raw while the Worker fetches the encoded form · Issue #618 · developing-today/code

X Title: lab-ops-hub: container validator returns WHATWG-encodable ASCII punctuation verbatim outside the host — path/query/fragment/userinfo " < > ^ ` { } go on the request line raw while the Worker fetches the encoded form · Issue #618 · developing-today/code

Description: Summary The container validator's returned-URL encoder (_encode_url_component, pkgs/lab-ops-hub/container/app.py:663) claims in its comment to encode "the way WHATWG's URL serializer encodes the userinfo, path, query and fragment compone...

Open Graph Description: Summary The container validator's returned-URL encoder (_encode_url_component, pkgs/lab-ops-hub/container/app.py:663) claims in its comment to encode "the way WHATWG's URL serializer encodes the us...

X Description: Summary The container validator's returned-URL encoder (_encode_url_component, pkgs/lab-ops-hub/container/app.py:663) claims in its comment to encode "the way WHATWG's URL serializer e...

Opengraph URL: https://github.com/developing-today/code/issues/618

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":"lab-ops-hub: container validator returns WHATWG-encodable ASCII punctuation verbatim outside the host — path/query/fragment/userinfo \" \u003c > ^ ` { } go on the request line raw while the Worker fetches the encoded form","articleBody":"## Summary\n\nThe container validator's returned-URL encoder (`_encode_url_component`, `pkgs/lab-ops-hub/container/app.py:663`) claims in its comment to encode \"the way WHATWG's URL serializer encodes the userinfo, path, query and fragment components\", but it only encodes non-ASCII characters (#615) and C0 controls / space / DEL (#614). The ASCII punctuation in WHATWG's per-component percent-encode sets passes through verbatim, so for URLs both validators accept, the container fetches a different (raw) spelling than the Worker fetches (its encoded form).\n\n## Evidence (verified 2026-10-22, current main 23eefe17)\n\n`validate_crawl_url` (Python) vs `new URL(...).toString()` (the Worker's serializer, Node 24):\n\n| Input | Container returns | Worker returns |\n|---|---|---|\n| `http://example.com/a\"b` | `http://example.com/a\"b` | `http://example.com/a%22b` |\n| `http://example.com/a\u003cb>c` | `http://example.com/a\u003cb>c` | `http://example.com/a%3Cb%3Ec` |\n| `http://example.com/a` + backtick + `b` | raw backtick | `a%60b` |\n| `http://example.com/a{b}c` | `http://example.com/a{b}c` | `http://example.com/a%7Bb%7Dc` |\n| `http://example.com/a^b` | `http://example.com/a^b` | `http://example.com/a%5Eb` |\n| `http://example.com/?q=a\"b\u003cc` | raw | `?q=a%22b%3Cc` |\n| `http://example.com/#a\"b\u003cc>` + backtick + `d` | raw | `#a%22b%3Cc%3E%60d` |\n| `http://us\"er@example.com/` | `http://us\"er@example.com/` | `http://us%22er@example.com/` |\n\nA per-character probe of the WHATWG serializer gives the exact sets (on top of the already-encoded non-ASCII / C0 / space / DEL):\n\n- **path**: `\"` `\u003c` `>` `^` `` ` `` `{` `}`\n- **query**: `\"` `\u003c` `>` (note: backtick, `^`, `{`, `}` stay raw in query)\n- **fragment**: `\"` `\u003c` `>` `` ` ``\n- **userinfo**: `\"` `;` `\u003c` `=` `>` `@` `[` `]` `^` `` ` `` `{` `|` `}` (the delimiter characters `/ : ? # \\` never survive urlparse into the userinfo, so they need no arm)\n\nThe sets are per-component: a single shared set would over-encode the query (e.g. a raw backtick in a query is exactly what the Worker fetches) and under-encode the userinfo.\n\n## Why it matters\n\n- The URL `validate_crawl_url` returns is the URL the fetcher fetches (`container/app.py:785`, `urllib.request.Request`). Raw `\"`, `\u003c`, `>` etc. go onto the request line unencoded: `http.client` only rejects C0/space/DEL (`_contains_disallowed_url_pchar_re`), so these sail through to the origin, where servers and intermediaries commonly reject a raw `\"`/`\u003c`/`>` in the request target with 400 — or parse it differently — while the Worker fetches the encoded form of the same validated URL successfully. Same validated target, different crawl outcome per backend: the #614/#615 divergence class, one character class later.\n- The comment on `_encode_url_component` overstates what the function does, which is how this residual stayed invisible through two fixes in this exact spot.\n\n## Acceptance criteria\n\n- `_url_with_encoded_components` percent-encodes the per-component WHATWG sets above in userinfo, path, query and fragment, in addition to the existing non-ASCII / C0 / space / DEL encoding; existing `%XX` sequences are never double-encoded.\n- The query component is NOT encoded with the path set (backtick / `^` / `{` / `}` in a query stay raw, matching the Worker byte-for-byte).\n- New tests in `test/test_container_validate.py` pin the table above (path, query, fragment, userinfo arms), and the existing differential/parity tests still pass.\n- Python suite (`test_container_validate.py`) and TS suite (`lib.test.ts`) both green.\n\n## Suggested fix\n\nGive `_encode_url_component` a per-component extra-set parameter (path / query / fragment / userinfo sets as probed above) and pass the matching set from each call site in `_url_with_encoded_components`; update the function's comment to name the sets it implements.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-23T00:17:36Z","url":"https://github.com/developing-today/code/issues/618"}

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:8cdcdeeb-3764-c70c-3f8d-52d4ee52b7a8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9FCC:1725D9:113FB70:17D144B:6B06B63B
html-safe-noncefb7e1aa91784ad7bc339f8895315183fe33a0dda57be08fafb06251dd40372fd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkNDOjE3MjVEOToxMTNGQjcwOjE3RDE0NEI6NkIwNkI2M0IiLCJ2aXNpdG9yX2lkIjoiOTk5MjkzOTU3OTAzMzk4NDU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac58bba96ea94ccb8a5597bc1127d927e1ff377164dcc20319b7536ea88f0609e8
hovercard-subject-tagissue:5989586858
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/developing-today/code/618/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b1cd312af82a0911dc425db1fbdf8409b619cab660baada4c0b99538253dd0dc/developing-today/code/issues/618
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b1cd312af82a0911dc425db1fbdf8409b619cab660baada4c0b99538253dd0dc/developing-today/code/issues/618
og:image:altSummary The container validator's returned-URL encoder (_encode_url_component, pkgs/lab-ops-hub/container/app.py:663) claims in its comment to encode "the way WHATWG's URL serializer encodes the us...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None9b2b1f32e21f9e529372294897d423fa443a20a3a37bafa95dec0f213469ebfc
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
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
release5402de66059e5821fab003de929c7056c92d863f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/618#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F618
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%2Fdeveloping-today%2Fcode%2Fissues%2F618
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=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/618
Reloadhttps://github.com/developing-today/code/issues/618
Reloadhttps://github.com/developing-today/code/issues/618
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests179 (179)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/618
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/618
#619https://github.com/developing-today/code/pull/619
lab-ops-hub: container validator returns WHATWG-encodable ASCII punctuation verbatim outside the host — path/query/fragment/userinfo " < > ^ ` { } go on the request line raw while the Worker fetches the encoded formhttps://github.com/developing-today/code/issues/618#top
#619https://github.com/developing-today/code/pull/619
https://github.com/dezren39
app/lab-ops-hubhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Flab-ops-hub%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/618#issue-5989586858
#615https://github.com/developing-today/code/issues/615
#614https://github.com/developing-today/code/issues/614
23eefe1https://github.com/developing-today/code/commit/23eefe174780e5f85fffd9bdfc4042ca4d840445
lab-ops-hub: container validator returns C0 controls, space and DEL verbatim outside the host — fetcher raises InvalidURL on URLs both validators accept (PR #612 residual) #614https://github.com/developing-today/code/issues/614
lab-ops-hub: container validator returns non-ASCII path/query/userinfo verbatim — fetcher raises UnicodeEncodeError on URLs both validators accept #615https://github.com/developing-today/code/issues/615
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/618#event-34005775644
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/618#event-34006300941
lab-ops-hub: wrap the _encode_url_component condition for treefmt (#618)https://github.com/developing-today/code/commit/d9e517ef61904cfb6ab7881f09ed617ddfcf8dee
#618https://github.com/developing-today/code/issues/618
d9e517ehttps://github.com/developing-today/code/commit/d9e517ef61904cfb6ab7881f09ed617ddfcf8dee
lab-ops-hub: apply ruff format to the #618 changeshttps://github.com/developing-today/code/commit/b261177ce57e40ad11bd9bbb036b8280b1ff0c9c
#618https://github.com/developing-today/code/issues/618
b261177https://github.com/developing-today/code/commit/b261177ce57e40ad11bd9bbb036b8280b1ff0c9c
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#619https://github.com/developing-today/code/pull/619
on Oct 23, 2026https://github.com/developing-today/code/issues/618#event-34006518680
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/618#event-34006518782
Merge pull request #619 from developing-today/creator/618-ascii-punct…https://github.com/developing-today/code/commit/07a16b76fd1e2a4944a2f9af4af8e059bc4b458f
#619https://github.com/developing-today/code/pull/619
07a16b7https://github.com/developing-today/code/commit/07a16b76fd1e2a4944a2f9af4af8e059bc4b458f
https://github.com/apps/developing-today-fleet
developing-today-fleethttps://github.com/apps/developing-today-fleet
on Nov 24, 2026https://github.com/developing-today/code/issues/618#issuecomment-7124554102
developing.today fleethttps://kaneo.security.cab
PR #619 — lab-ops-hub: percent-encode WHATWG ASCII punctuation sets on the container validator's returned URL (#618)https://github.com/developing-today/code/pull/619
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
app/lab-ops-hubhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Flab-ops-hub%22
on Nov 25, 2026https://github.com/developing-today/code/issues/618#event-37214153868
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/618
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/618
dezren39https://github.com/dezren39
app/lab-ops-hubhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Flab-ops-hub%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
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.