Skip to content

Hardening isValidUrl - #2168

Open
jeesunikim wants to merge 2 commits into
mainfrom
bugfix
Open

Hardening isValidUrl#2168
jeesunikim wants to merge 2 commits into
mainfrom
bugfix

Conversation

@jeesunikim

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings July 28, 2026 20:31
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Jul 28, 2026
@jeesunikim
jeesunikim requested a review from quietbits July 28, 2026 20:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Hardens URL linkification to reduce unsafe wallet-signing and insecure HTTP links.

Changes:

  • Expands blocked wallet domains and normalizes trailing dots.
  • Restricts HTTP links to local loopback hosts.
  • Adds URL validation tests.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/helpers/isValidUrl.ts Strengthens URL validation and wallet-domain filtering.
tests/unit/isValidUrl.test.ts Covers protocols, local hosts, wallet domains, and FQDN bypasses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/helpers/isValidUrl.ts Outdated
@stellar-jenkins-ci

Copy link
Copy Markdown

@stellar-jenkins-ci

Copy link
Copy Markdown

@jeesunikim jeesunikim changed the title bugfix Hardening isValidUrl Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog (Not Ready)

Development

Successfully merging this pull request may close these issues.

3 participants