mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 17:26:03 +03:00
[PR #5729] fix: prevent open redirect in desktop auth callback (CWE-601) #5330
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5330
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5729
Author: @rajnishprecogs
Created: 12/26/2025
Status: 🔄 Open
Base:
main← Head:fix/open-redirect-desktop-callback📝 Commits (1)
478433efix: prevent open redirect in desktop auth callback (CWE-601)📊 Changes
1 file changed (+20 additions, -1 deletions)
View changed files
📝
packages/hoppscotch-backend/src/auth/auth.controller.ts(+20 -1)📄 Description
Closes #
What's changed
Notes to reviewers
Summary by cubic
Prevents open redirects in the desktop auth callback by parsing redirect_uri and strictly limiting allowed hosts to loopback. Blocks malicious URLs like http://localhost.evil.com.
Written for commit
478433e10b. Summary will update automatically on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.