Patch Changes
-
#1326
d5042a9Thanks @threepointone! - fix(mcp): block full IPv6 link-local rangefe80::/10in SSRF checkisBlockedUrlin the MCP client claimed to blockfe80::/10but the
previousstartsWith("fe80")check only matched the narrower
fe80::/16, letting valid link-local addresses in thefe81::–febf::
range slip through. Replaced with a regex that matches the full /10
(first hextetfe80throughfebf), factored the IPv6 private-range
logic intoisPrivateIPv6, and added regression tests for the
previously-leaking prefixes plus negative cases at the /10 boundary
(fe7f::,fec0::).Reported in #1325.