Skip to content

Query Injection Vulnerability#653

Open
annrose2277-glitch wants to merge 1 commit into
GitMetricsLab:mainfrom
annrose2277-glitch:doc
Open

Query Injection Vulnerability#653
annrose2277-glitch wants to merge 1 commit into
GitMetricsLab:mainfrom
annrose2277-glitch:doc

Conversation

@annrose2277-glitch
Copy link
Copy Markdown

Related Issue


Description

Patched a query injection vulnerability in useGitHubData.ts. User inputs for search filters are now properly encoded/sanitized using URLSearchParams (or encodeURIComponent) rather than being directly concatenated into the raw query string.


How Has This Been Tested?

  • Tested search functionality locally using standard alphanumeric inputs.
  • Attempted to inject special characters into the search bar to verify they are now safely encoded and do not break the GitHub API request.

Type of Change

  • Bug fix (Security)
  • New feature
  • Code style update
  • Breaking change
  • Documentation update

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 1, 2026

Deploy Preview for github-spy ready!

Name Link
🔨 Latest commit 933cf59
🔍 Latest deploy log https://app.netlify.com/projects/github-spy/deploys/6a1d08f12a4e7c0008004e83
😎 Deploy Preview https://deploy-preview-653--github-spy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 1, 2026

Warning

Review limit reached

@annrose2277-glitch, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 22 minutes and 2 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7a0419fa-e06c-44a1-8d07-2e846a703166

📥 Commits

Reviewing files that changed from the base of the PR and between 53f820b and 933cf59.

📒 Files selected for processing (1)
  • src/hooks/useGitHubData.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Bug Report: Query Injection Vulnerability

1 participant