Skip to content

Fix resolved URL destination validation - #113

Open
3em0 wants to merge 1 commit into
zcaceres:mainfrom
3em0:fix-url-resolved-destination-validation
Open

Fix resolved URL destination validation#113
3em0 wants to merge 1 commit into
zcaceres:mainfrom
3em0:fix-url-resolved-destination-validation

Conversation

@3em0

@3em0 3em0 commented Jun 3, 2026

Copy link
Copy Markdown

Summary

  • normalize bracketed IPv6 hostnames before private address checks
  • resolve URL hostnames before fetching and reject any private, loopback, link-local, or reserved destination address
  • apply the same destination validation to each manual redirect target

Fixes #112

Testing

  • node node_modules/typescript/bin/tsc --noEmit
  • temporary compiled smoke test confirmed rejection of http://[::1], IPv4-mapped loopback, 127.0.0.1, and a hostname resolving to 10.0.0.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CVE-2025-65512 appears to affect 1.1.0 via URL destination validation bypass

1 participant