Skip to content

Fix SSRF allowlist and refactor allowed hosts to module scope#703

Merged
jamespepper81 merged 4 commits into
mainfrom
dev
May 27, 2026
Merged

Fix SSRF allowlist and refactor allowed hosts to module scope#703
jamespepper81 merged 4 commits into
mainfrom
dev

Conversation

@jamespepper81
Copy link
Copy Markdown
Contributor

No description provided.

jamespepper81 and others added 4 commits May 27, 2026 12:10
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
… api.alternative.me

The Copilot Autofix allowlist only included three hosts, but fetchJson() is also
called with blockchain.info (BTC ticker) and api.alternative.me (Fear & Greed
Index). Without these, address pages, wallet dashboard, and market page would
throw "Disallowed provider URL" errors. Also moved the Set to module scope to
avoid re-creating it on every call.

https://claude.ai/code/session_01SKn49yBtsK4JtGvpyfauqB
Refactor: Extract allowed hosts to module-level constant
Potential fix for code scanning alert no. 3: Server-side request forgery
@jamespepper81 jamespepper81 merged commit 510ec44 into main May 27, 2026
7 checks passed
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.

2 participants