{"id":"CVE-2026-54452","aliases":["CVE-2026-54452","GHSA-xgch-x3mx-cm3c","GO-2026-5997"],"related":[],"kind":"vulnerability","state":"published","title":"safeurl: Missing IPv6 CIDR Ranges in Blocklist","summary":"safeurl is a server-side request forgery protection library. Prior to 0.2.4, the privateNetworks list in ip.go omits the IPv6 ranges 64:ff9b:1::/48, 5f00::/16, 3fff::/20, and 100:0:0:1::/64. When an application enables IPv6 with EnableIPv6(true), an attacker-controlled destination in one of these ranges is not recognized as non-public and can pass the SSRF destination check, potentially allowing access to resources hosted within the omitted ranges. IPv6 is disabled by default, and configurations that retain EnableIPv6(false) are not exposed to this bypass. This issue is fixed in version 0.2.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"safeurl is a server-side request forgery protection library. Prior to 0.2.4, the privateNetworks list in ip.go omits the IPv6 ranges 64:ff9b:1::/48, 5f00::/16, 3fff::/20, and 100:0:0:1::/64. When an application enables IPv6 with EnableIPv6(true), an attacker-controlled destination in one of these ranges is not recognized as non-public and can pass the SSRF destination check, potentially allowing access to resources hosted within the omitted ranges. IPv6 is disabled by default, and configurations that retain EnableIPv6(false) are not exposed to this bypass. This issue is fixed in version 0.2.4.","source":"cvelist"},{"lang":"en","text":"The `privateNetworks` blocklist was found to be missing newly added CIDR ranges. More specifically, the following CIDR ranges were not being blocked:\n- `64:ff9b:1::/48`: NAT64 local-use prefix (RFC 8215)\n- `5f00::/16`: Segment Routing (SRv6) SIDs (RFC 9602)\n- `3fff::/20`: documentation prefix (RFC 9637)\n- `100:0:0:1::/64`: Dummy IPv6 Prefix (RFC 9780)\n\n### Impact\nIf exploited, an attacker would potentially be able to reach resources hosted on the IPs residing in the missing ranges.\n\n### Workarounds\nDisable IPv6 by setting `EnableIPv6(false)`. This is the default behavior of the library.\n\n### Resolution\nUpgrade to v0.2.4\n\n### Credits\nsafeurl thanks @tonghuaroot for reporting.","format":"markdown","source":"ghsa"},{"lang":"en","text":"safeurl is Missing IPv6 CIDR Ranges in Blocklist in github.com/doyensec/safeurl","format":"markdown","source":"go"}],"published":"2026-07-15T21:58:03.000Z","modified":"2026-09-30T17:51:56.193Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 0.2.4","status":"affected"}],"vendor":"doyensec","product":"safeurl","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.4"}],"ecosystem":"Go","package":"github.com/doyensec/safeurl","purl":"pkg:golang/github.com/doyensec/safeurl","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.4"}],"ecosystem":"Go","package":"github.com/doyensec/safeurl","purl":"pkg:golang/github.com/doyensec/safeurl","source":"go"}],"references":[{"url":"https://github.com/doyensec/safeurl/security/advisories/GHSA-xgch-x3mx-cm3c","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/doyensec/safeurl/pull/12","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/doyensec/safeurl/commit/d8f1021ea535b276f92999f0ec865da40e467016","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/doyensec/safeurl/releases/tag/v0.2.4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/doyensec/safeurl","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-09-16T15:16:34.102Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54452","url":"https://www.cve.org/CVERecord?id=CVE-2026-54452","licence":"CVE Terms of Use","modified":"2026-09-16T15:16:53.206Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xgch-x3mx-cm3c","url":"https://github.com/advisories/GHSA-xgch-x3mx-cm3c","licence":"CC-BY-4.0","modified":"2026-07-21T19:19:10.724Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5997","url":"https://pkg.go.dev/vuln/GO-2026-5997","licence":"CC-BY-4.0","modified":"2026-07-21T19:15:35.881Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54452","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54452","licence":"Public domain","modified":"2026-09-30T17:51:56.193Z"}],"updatedAt":"2026-11-25T22:59:38.307Z","epss":{"score":0.0039,"percentile":0.35232,"date":"2026-12-01T12:00:22.000Z"}}