Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.268 ·

URL host parsing hardened against protocol-relative and scheme-prefixed strings

URL host parsing now rejects scheme-prefixed strings and strips whitespace before building fallback URLs

TierYou'll noticehow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaElsewherewhat it touches
KindBug Fixesin v2.1.268,
You'll notice

URL host parsing now rejects scheme-prefixed strings and strips whitespace before building fallback URLs

What

Before Claude Code builds a fallback https:// URL out of a bare host string, it now checks whether that string already looks like it starts with a URL scheme (something like foo: at the start) and bails out if so, instead of blindly prepending https://. It also now strips tab, newline, carriage-return, and surrounding whitespace characters from the string before parsing it.

Why

This closes off ways a crafted host string could be misinterpreted as pointing somewhere other than intended, such as smuggling in a different scheme or hiding characters in whitespace.

See this entry in the whole of v2.1.268 →

Feedback