[BUG]: User-controlled org/repo names are interpolated into API URLs unencoded

Open Beginner friendly
#449 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@AbhishekKumar-cse is already working on this.

Since Nov 10, 2026.

  • #450 by @AbhishekKumar-cse — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
github, javascript
Domain
api, security

Research direction

The payload names only fetchWithCache and its calls to https://api.github.com/orgs/${org} and repos/${org}/${repo}/..., so start by finding every call site where the user-entered org and repo values reach those URLs. Reproduce by entering ../users/octocat as the org and checking the request path. Done means the org and repo segments are encoded or validated before interpolation, so input like /, ?, # or .. stays inside one path segment, and the request still works for normal names.

Written by the indexing model from the issue text.

Description

bug
Bug Description

Organization and repository names from user input are inserted directly into GitHub API URLs:

fetchWithCache(`https://api.github.com/orgs/${org}`, pat)
fetchWithCache(`https://api.github.com/repos/${org}/${repo}/...`, pat)

The input is trimmed and deduplicated but not validated or URL-encoded. Characters such as /, ?, #, or .. can change the requested API path or query.

Steps to Reproduce
  1. Enter an org value such as ../users/octocat.
  2. Start an explore.
  3. Observe that the request path is normalized to a different GitHub API endpoint than intended.
Impact

Low - Minor inconvenience

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Dominant language
JavaScript
Stars
53
Forks
187
Avg merge
18m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/OrgExplorer

All issues in AOSSIE-Org/OrgExplorer

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.