You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
validateApiUrl accepts any URL scheme, including javascript: and file:, as a valid NEXT_PUBLIC_API_URL #204
Stellar WaveIssues in the Stellar wave programbugSomething isn't workingdocumentationImprovements or additions to documentationhelp wantedExtra attention is neededvery hardVery difficult task, expert-level effort required
new URL(...) does not restrict the scheme — new URL("javascript:alert(1)"), new URL("file:///etc/passwd"), and new URL("ftp://example.com") all construct
successfully and pass this check, even though none of them are meaningful as an HTTP API
base URL. A misconfigured deployment (e.g. a copy-paste error that includes a javascript: or data: prefix, or a stray file:// from a local testing script left in
an environment file) would pass build-time validation and only fail much later, at the
actual fetch() call site in src/lib/api.ts, with a much less clear error than the one
this function was written to provide.
The function's own doc comment says it "checks the value is a well-formed URL (catches a
truncated paste, a missing protocol, stray whitespace, an empty string)" — accepting a
non-http(s) scheme is a well-formed URL that still isn't a valid API base URL, which is
what this function is meant to guard.
Suggested fix: after the new URL(value) parse succeeds, additionally assert protocol === "http:" || protocol === "https:" and throw the same EnvValidationError
otherwise.
@faithylet has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
Hi maintainer,
I have experience working with input validation, API security, and writing tests for edge cases. I can update validateApiUrl to properly restrict URL schemes, reject unsafe or unsupported schemes, and add comprehensive tests to prevent regressions.
Assign it to me
Congratulations, @posimideveloper! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.
🧑💻 @posimideveloper: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
😎 @posimideveloper: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
Stellar WaveIssues in the Stellar wave programbugSomething isn't workingdocumentationImprovements or additions to documentationhelp wantedExtra attention is neededvery hardVery difficult task, expert-level effort required
Activity
Hasmong commentedon Aug 24, 2026
@Hasmong has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Hasmong to this issue.
Joshua-echu commentedon Aug 24, 2026
@Joshua-echu has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Joshua-echu to this issue.
larryjay007 commentedon Aug 24, 2026
@larryjay007 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @larryjay007 to this issue.
khaylebfortune commentedon Aug 24, 2026
@khaylebfortune has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @khaylebfortune to this issue.
posimideveloper commentedon Aug 24, 2026
@posimideveloper has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @posimideveloper to this issue.
faithylet commentedon Aug 24, 2026
@faithylet has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @faithylet to this issue.
drips-wave commentedon Aug 24, 2026
Congratulations, @posimideveloper! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.
🧑💻 @posimideveloper: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
fix(env): reject non-http(s) schemes in NEXT_PUBLIC_API_URL
drips-wave commentedon Aug 25, 2026
This issue has been completed by @posimideveloper as part of the Stellar Wave Program's 8th Wave 🥳
😎 @posimideveloper: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.