fix(ssrf): respect ALLOWED_PRIVATE_HOSTS in isSsrfSafe and assertSsrfSafeResolved#187
Merged
therealbrad merged 1 commit intomainfrom Apr 11, 2026
Merged
Conversation
…SafeResolved Both functions in utils/ssrf.ts blocked private/internal hosts without checking the operator allowlist, causing self-hosted Gitea (and similar) connections to fail even with ALLOWED_PRIVATE_HOSTS configured. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
🎉 This PR is included in version 0.21.6 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
therealbrad
pushed a commit
that referenced
this pull request
Apr 12, 2026
## [0.21.6](v0.21.5...v0.21.6) (2026-04-11) ### Bug Fixes * **ssrf:** respect ALLOWED_PRIVATE_HOSTS in isSsrfSafe and assertSsrfSafeResolved ([#187](#187)) ([167d113](167d113))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
isSsrfSafe()andassertSsrfSafeResolved()inutils/ssrf.tswere blocking private/internal hosts without checking theALLOWED_PRIVATE_HOSTSenv vargetAllowedPrivateHosts()before rejectingTest plan
ALLOWED_PRIVATE_HOSTS=<internal-host>and confirm Gitea connection succeeds🤖 Generated with Claude Code